	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acx565akm_transfer
_acx565akm_transfer:                    ## @acx565akm_transfer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-184(%rbp), %rdi
	callq	_spi_message_init
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$120, %edx
	callq	_memset
	movzbl	%r14b, %eax
	movl	%eax, -188(%rbp)
	leaq	-188(%rbp), %rcx
	movq	%rcx, -176(%rbp)
	movabsq	$8589934601, %rcx               ## imm = 0x200000009
	movq	%rcx, -168(%rbp)
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.1:
	cmpl	$2, %r12d
	jl	LBB0_3
## %bb.2:
	movl	$10, -168(%rbp)
	addl	%eax, %eax
	movl	%eax, -188(%rbp)
LBB0_3:
	leaq	-184(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_spi_message_add_tail
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	leaq	-152(%rbp), %rbx
	movq	%r15, -152(%rbp)
	movl	%r13d, -140(%rbp)
	movl	$9, -144(%rbp)
	leaq	-184(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_spi_message_add_tail
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	leaq	24(%rbx), %rdi
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 40(%rbx)
	movl	%r12d, 36(%rbx)
	leaq	-184(%rbp), %rsi
	callq	_spi_message_add_tail
LBB0_7:
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rdi
	leaq	-184(%rbp), %rsi
	callq	_spi_sync
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spi_sync %d\n"

	.no_dead_strip	_acx565akm_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function acx565akm_transfer
lCPI0_0:
	.long	9                               ; 0x9
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_acx565akm_transfer:                    ; @acx565akm_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #8
	bl	_spi_message_init
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #120
	bl	_memset
	and	w8, w24, #0xff
	str	w8, [sp, #12]
	add	x9, sp, #12
	str	x9, [sp, #16]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	cbnz	w22, LBB0_3
; %bb.1:
	cmp	w20, #2
	b.lt	LBB0_3
; %bb.2:
	mov	w9, #10
	str	w9, [sp, #24]
	lsl	w8, w8, #1
	str	w8, [sp, #12]
LBB0_3:
	add	x24, sp, #16
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_spi_message_add_tail
	cbz	w22, LBB0_5
; %bb.4:
	add	x24, x24, #24
	str	x23, [sp, #40]
	mov	w8, #9
	stp	w8, w22, [sp, #48]
	add	x1, sp, #8
	mov	x0, x24
	bl	_spi_message_add_tail
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	add	x0, x24, #24
	str	x21, [x24, #40]
	str	w20, [x24, #36]
	add	x1, sp, #8
	bl	_spi_message_add_tail
LBB0_7:
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_spi_sync
	tbz	w0, #31, LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi_sync %d\n"

	.no_dead_strip	_acx565akm_transfer
.subsections_via_symbols
