	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx9805_aux_xfer
_anx9805_aux_xfer:                      ## @anx9805_aux_xfer
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
	movl	%edx, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_anx9805_aux
	movq	%rax, %r13
	movq	8(%rax), %rbx
	movq	8(%rbx), %r12
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -116(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_AUX_DBG
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	_nvkm_rdi2cr
	movl	%eax, %r14d
	andl	$-5, %r14d
	movl	(%rbx), %esi
	orl	$4, %eax
	movq	%r12, %rdi
	movl	$7, %edx
	movl	%eax, %ecx
	callq	_nvkm_wri2cr
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$7, %edx
	movl	%r14d, %ecx
	callq	_nvkm_wri2cr
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$247, %edx
	movl	$1, %ecx
	callq	_nvkm_wri2cr
	movl	4(%r13), %esi
	movq	%r12, %rdi
	movl	$228, %edx
	movl	$128, %ecx
	callq	_nvkm_wri2cr
	movl	%r15d, -120(%rbp)               ## 4-byte Spill
	testb	$1, %r15b
	jne	LBB0_1
## %bb.2:
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %edx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_memcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_AUX_DBG
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	movl	-116(%rbp), %r14d               ## 4-byte Reload
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %esi
	movl	-112(%rbp,%rbx,4), %ecx
	leal	240(%rbx), %edx
	movq	%r12, %rdi
	callq	_nvkm_wri2cr
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %ecx
	movl	-116(%rbp), %r14d               ## 4-byte Reload
LBB0_5:
	movl	4(%r13), %esi
	shll	$4, %ecx
	addl	$-16, %ecx
	orl	-120(%rbp), %ecx                ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	$229, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_nvkm_wri2cr
	movl	4(%r13), %esi
	movl	-124(%rbp), %ebx                ## 4-byte Reload
	movzbl	%bl, %ecx
	movq	%r12, %rdi
	movl	$230, %edx
	callq	_nvkm_wri2cr
	movl	4(%r13), %esi
	movzbl	%bh, %ecx
	movq	%r12, %rdi
	movl	$231, %edx
	callq	_nvkm_wri2cr
	movl	4(%r13), %esi
	shrl	$16, %ebx
	andl	$15, %ebx
	movq	%r12, %rdi
	movl	$232, %edx
	movl	%ebx, %ecx
	callq	_nvkm_wri2cr
	movl	4(%r13), %esi
	movq	%r12, %rdi
	movl	$233, %edx
	movl	$1, %ecx
	callq	_nvkm_wri2cr
	movl	$33, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %esi
	movq	%r12, %rdi
	movl	$233, %edx
	callq	_nvkm_rdi2cr
	testb	$1, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$5, %edi
	callq	_mdelay
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_15
LBB0_8:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$247, %edx
	callq	_nvkm_rdi2cr
	testb	$1, %al
	jne	LBB0_9
## %bb.10:
	xorl	%r14d, %r14d
	testb	$1, -120(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_16
## %bb.11:
	cmpl	$0, (%r15)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %esi
	leal	240(%rbx), %edx
	movq	%r12, %rdi
	callq	_nvkm_rdi2cr
	movl	%eax, -112(%rbp,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	leaq	-112(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_AUX_DBG
	movl	(%r15), %edx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%r14d, %r14d
	callq	_memcpy
LBB0_15:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$247, %edx
	movl	$1, %ecx
	callq	_nvkm_wri2cr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x %05x %d"

L_.str.1:                               ## @.str.1
	.asciz	"%16ph"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_anx9805_aux_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx9805_aux_xfer
_anx9805_aux_xfer:                      ; @anx9805_aux_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x20, x4
	mov	x25, x3
	mov	x23, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_anx9805_aux
	mov	x22, x0
	ldr	x27, [x0, #8]
	ldr	x19, [x27, #8]
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	ldr	w8, [x21]
	stp	x25, x8, [sp, #8]
	str	x23, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AUX_DBG
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #7
	bl	_nvkm_rdi2cr
	and	w26, w0, #0xfffffffb
	ldr	w1, [x27]
	orr	w3, w0, #0x4
	mov	x0, x19
	mov	w2, #7
	bl	_nvkm_wri2cr
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #7
	mov	x3, x26
	bl	_nvkm_wri2cr
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #247
	mov	w3, #1
	bl	_nvkm_wri2cr
	ldr	w1, [x22, #4]
	mov	x0, x19
	mov	w2, #228
	mov	w3, #128
	bl	_nvkm_wri2cr
	tbnz	w23, #0, LBB0_4
; %bb.1:
	ldr	w2, [x21]
	add	x26, sp, #32
	add	x0, sp, #32
	mov	x1, x20
	bl	_memcpy
	str	x26, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_AUX_DBG
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x28, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #4]
	ldr	w3, [x26, x28, lsl #2]
	add	w2, w28, #240
	mov	x0, x19
	bl	_nvkm_wri2cr
	add	x28, x28, #1
	ldrsw	x8, [x21]
	cmp	x28, x8
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21]
LBB0_5:
	ldr	w1, [x22, #4]
	lsl	w8, w8, #4
	sub	w8, w8, #16
	orr	w3, w8, w23
	mov	x0, x19
	mov	w2, #229
	bl	_nvkm_wri2cr
	ldr	w1, [x22, #4]
	and	w3, w25, #0xff
	mov	x0, x19
	mov	w2, #230
	bl	_nvkm_wri2cr
	ldr	w1, [x22, #4]
	ubfx	w3, w25, #8, #8
	mov	x0, x19
	mov	w2, #231
	bl	_nvkm_wri2cr
	ldr	w1, [x22, #4]
	ubfx	w3, w25, #16, #4
	mov	x0, x19
	mov	w2, #232
	bl	_nvkm_wri2cr
	ldr	w1, [x22, #4]
	mov	x0, x19
	mov	w2, #233
	mov	w3, #1
	bl	_nvkm_wri2cr
	mov	w25, #33
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #4]
	mov	x0, x19
	mov	w2, #233
	bl	_nvkm_rdi2cr
	tbz	w0, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5
	bl	_mdelay
	subs	w25, w25, #1
	b.ne	LBB0_6
	b	LBB0_16
LBB0_8:
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #247
	bl	_nvkm_rdi2cr
	tbnz	w0, #0, LBB0_15
; %bb.9:
	tbz	w23, #0, LBB0_14
; %bb.10:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x23, #0
	add	x24, sp, #32
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #4]
	add	w2, w23, #240
	mov	x0, x19
	bl	_nvkm_rdi2cr
	str	w0, [x24, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_12
LBB0_13:
	add	x8, sp, #32
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_AUX_DBG
	ldr	w2, [x21]
	add	x1, sp, #32
	mov	x0, x20
	bl	_memcpy
LBB0_14:
	mov	w24, #0
	b	LBB0_16
LBB0_15:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #247
	mov	w3, #1
	bl	_nvkm_wri2cr
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x24
	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
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x %05x %d"

l_.str.1:                               ; @.str.1
	.asciz	"%16ph"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_anx9805_aux_xfer
.subsections_via_symbols
