	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdei_get_conduit
_sdei_get_conduit:                      ## @sdei_get_conduit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rdi
	movq	_sdei_firmware_call@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	callq	_of_property_read_string
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_CONDUIT_INVALID@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	movq	_CONFIG_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	movq	_CONDUIT_INVALID@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_acpi_disabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	_acpi_psci_use_hvc
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_10
LBB0_3:
	movq	-24(%rbp), %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_CONDUIT_INVALID@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	movq	_sdei_smccc_hvc@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	_CONDUIT_HVC@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_10:
	movq	_sdei_smccc_smc@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	_CONDUIT_SMC@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sdei_firmware_call,8,3         ## @sdei_firmware_call
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"method"

L_.str.1:                               ## @.str.1
	.asciz	"missing \"method\" property\n"

	.comm	_CONDUIT_INVALID,4,2            ## @CONDUIT_INVALID
L_.str.2:                               ## @.str.2
	.asciz	"hvc"

	.comm	_sdei_smccc_hvc,4,2             ## @sdei_smccc_hvc
	.comm	_CONDUIT_HVC,4,2                ## @CONDUIT_HVC
L_.str.3:                               ## @.str.3
	.asciz	"smc"

	.comm	_sdei_smccc_smc,4,2             ## @sdei_smccc_smc
	.comm	_CONDUIT_SMC,4,2                ## @CONDUIT_SMC
L_.str.4:                               ## @.str.4
	.asciz	"invalid \"method\" property: %s\n"

	.comm	_CONFIG_ACPI,4,2                ## @CONFIG_ACPI
	.comm	_acpi_disabled,4,2              ## @acpi_disabled
	.no_dead_strip	_sdei_get_conduit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdei_get_conduit
_sdei_get_conduit:                      ; @sdei_get_conduit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x0, [x0]
Lloh0:
	adrp	x20, _sdei_firmware_call@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sdei_firmware_call@GOTPAGEOFF]
	str	xzr, [x20]
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_string
	cbz	x0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _CONFIG_ACPI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG_ACPI@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IS_ENABLED
Lloh9:
	adrp	x8, _acpi_disabled@GOTPAGE
Lloh10:
	ldr	x8, [x8, _acpi_disabled@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_9
; %bb.4:
	bl	_acpi_psci_use_hvc
	cbnz	x0, LBB0_10
	b	LBB0_11
LBB0_5:
	ldr	x19, [sp, #8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.6:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.7:
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_pr_warn
LBB0_9:
Lloh18:
	adrp	x8, _CONDUIT_INVALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CONDUIT_INVALID@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _sdei_smccc_hvc@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sdei_smccc_hvc@GOTPAGEOFF]
	str	x8, [x20]
Lloh22:
	adrp	x8, _CONDUIT_HVC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONDUIT_HVC@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _sdei_smccc_smc@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sdei_smccc_smc@GOTPAGEOFF]
	str	x8, [x20]
Lloh26:
	adrp	x8, _CONDUIT_SMC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CONDUIT_SMC@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_sdei_firmware_call,8,3         ; @sdei_firmware_call
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"method"

l_.str.1:                               ; @.str.1
	.asciz	"missing \"method\" property\n"

	.comm	_CONDUIT_INVALID,4,2            ; @CONDUIT_INVALID
l_.str.2:                               ; @.str.2
	.asciz	"hvc"

	.comm	_sdei_smccc_hvc,4,2             ; @sdei_smccc_hvc
	.comm	_CONDUIT_HVC,4,2                ; @CONDUIT_HVC
l_.str.3:                               ; @.str.3
	.asciz	"smc"

	.comm	_sdei_smccc_smc,4,2             ; @sdei_smccc_smc
	.comm	_CONDUIT_SMC,4,2                ; @CONDUIT_SMC
l_.str.4:                               ; @.str.4
	.asciz	"invalid \"method\" property: %s\n"

	.comm	_CONFIG_ACPI,4,2                ; @CONFIG_ACPI
	.comm	_acpi_disabled,4,2              ; @acpi_disabled
	.no_dead_strip	_sdei_get_conduit
.subsections_via_symbols
