	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_set_conduit_method
_get_set_conduit_method:                ## @get_set_conduit_method
	.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, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	-24(%rbp), %r14
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_PSCI_CONDUIT_HVC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_PSCI_CONDUIT_SMC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_set_conduit
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probing for conduit method from DT.\n"

L_.str.1:                               ## @.str.1
	.asciz	"method"

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

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"hvc"

	.comm	_PSCI_CONDUIT_HVC,4,2           ## @PSCI_CONDUIT_HVC
L_.str.4:                               ## @.str.4
	.asciz	"smc"

	.comm	_PSCI_CONDUIT_SMC,4,2           ## @PSCI_CONDUIT_SMC
L_.str.5:                               ## @.str.5
	.asciz	"invalid \"method\" property: %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_set_conduit_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_set_conduit_method
_get_set_conduit_method:                ; @get_set_conduit_method
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_of_property_read_string
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_3:
	ldr	x19, [sp, #8]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.4:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.5:
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_6:
Lloh16:
	adrp	x8, _PSCI_CONDUIT_HVC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PSCI_CONDUIT_HVC@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _PSCI_CONDUIT_SMC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PSCI_CONDUIT_SMC@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_set_conduit
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probing for conduit method from DT.\n"

l_.str.1:                               ; @.str.1
	.asciz	"method"

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

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"hvc"

	.comm	_PSCI_CONDUIT_HVC,4,2           ; @PSCI_CONDUIT_HVC
l_.str.4:                               ; @.str.4
	.asciz	"smc"

	.comm	_PSCI_CONDUIT_SMC,4,2           ; @PSCI_CONDUIT_SMC
l_.str.5:                               ; @.str.5
	.asciz	"invalid \"method\" property: %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_set_conduit_method
.subsections_via_symbols
