	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applespi_get_spi_settings
_applespi_get_spi_settings:             ## @applespi_get_spi_settings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_ACPI_COMPANION
	movq	%rax, %r14
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movq	%rax, %rdi
	callq	_acpi_dev_get_property
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_3
LBB0_1:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_3:
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	callq	_acpi_dev_get_property
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_6
LBB0_4:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_6:
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	callq	_acpi_dev_get_property
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_warn
	movq	8(%rbx), %r8
	jmp	LBB0_9
LBB0_7:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	movq	%r8, 8(%rbx)
LBB0_9:
	movq	24(%rbx), %rdx
	movq	(%rbx), %rdi
	movq	16(%rbx), %rcx
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spiCSDelay"

	.comm	_ACPI_TYPE_BUFFER,4,2           ## @ACPI_TYPE_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"Property spiCSDelay not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"resetA2RUsec"

L_.str.3:                               ## @.str.3
	.asciz	"Property resetA2RUsec not found\n"

L_.str.4:                               ## @.str.4
	.asciz	"resetRecUsec"

L_.str.5:                               ## @.str.5
	.asciz	"Property resetRecUsec not found\n"

L_.str.6:                               ## @.str.6
	.asciz	"SPI settings: spi_cs_delay=%llu reset_a2r_usec=%llu reset_rec_usec=%llu\n"

	.no_dead_strip	_applespi_get_spi_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applespi_get_spi_settings
_applespi_get_spi_settings:             ; @applespi_get_spi_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0]
	bl	_ACPI_COMPANION
	mov	x20, x0
Lloh0:
	adrp	x21, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	bl	_acpi_dev_get_property
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_3:
	ldr	w2, [x21]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	bl	_acpi_dev_get_property
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_6:
	ldr	w2, [x21]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	bl	_acpi_dev_get_property
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_warn
	ldr	x4, [x19, #8]
	b	LBB0_9
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x4, [x8]
	str	x4, [x19, #8]
LBB0_9:
	ldr	x0, [x19]
	ldp	x3, x2, [x19, #16]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spiCSDelay"

	.comm	_ACPI_TYPE_BUFFER,4,2           ; @ACPI_TYPE_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"Property spiCSDelay not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"resetA2RUsec"

l_.str.3:                               ; @.str.3
	.asciz	"Property resetA2RUsec not found\n"

l_.str.4:                               ; @.str.4
	.asciz	"resetRecUsec"

l_.str.5:                               ; @.str.5
	.asciz	"Property resetRecUsec not found\n"

l_.str.6:                               ; @.str.6
	.asciz	"SPI settings: spi_cs_delay=%llu reset_a2r_usec=%llu reset_rec_usec=%llu\n"

	.no_dead_strip	_applespi_get_spi_settings
.subsections_via_symbols
