	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx9805_bus_xfer
_anx9805_bus_xfer:                      ## @anx9805_bus_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	callq	_anx9805_bus
	movq	%rax, %r14
	movq	8(%rax), %r13
	movq	8(%r13), %rbx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_nvkm_rdi2cr
	movl	%eax, %r15d
	andl	$-17, %r15d
	movl	(%r13), %esi
	orl	$16, %eax
	movq	%rbx, %rdi
	movl	$7, %edx
	movl	%eax, %ecx
	callq	_nvkm_wri2cr
	movl	(%r13), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movl	$7, %edx
	movl	%r15d, %ecx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	callq	_nvkm_wri2cr
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$67, %edx
	movl	$5, %ecx
	callq	_nvkm_wri2cr
	movl	$5, %edi
	callq	_mdelay
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	movl	%r15d, %edx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movl	(%r13), %ecx
	movl	4(%r12), %eax
	testl	%ecx, (%r12)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$80, %eax
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	movl	$160, %ecx
	callq	_nvkm_wri2cr
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_nvkm_wri2cr
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$66, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_nvkm_wri2cr
	movl	(%r14), %esi
	movl	8(%r12), %ecx
	movq	%rbx, %rdi
	movl	$68, %edx
	callq	_nvkm_wri2cr
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$69, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_wri2cr
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$67, %edx
	movl	$1, %ecx
	callq	_nvkm_wri2cr
	cmpl	$0, 8(%r12)
	jle	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movl	$33, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$70, %edx
	callq	_nvkm_rdi2cr
	testb	$16, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	movl	$5, %edi
	callq	_mdelay
	decl	%r15d
	jne	LBB0_7
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$71, %edx
	callq	_nvkm_rdi2cr
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movslq	8(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$48, %eax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$80, %eax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, 8(%r12)
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, 8(%r12)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	%edx
	addq	$24, %r12
	testl	%edx, %edx
	jne	LBB0_2
## %bb.19:
	movl	%r15d, %r13d
	jmp	LBB0_21
LBB0_20:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_21:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$67, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_wri2cr
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_anx9805_bus_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx9805_bus_xfer
_anx9805_bus_xfer:                      ; @anx9805_bus_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x22, x1
	bl	_anx9805_bus
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	x19, [x24, #8]
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #7
	bl	_nvkm_rdi2cr
	and	w23, w0, #0xffffffef
	ldr	w1, [x24]
	orr	w3, w0, #0x10
	mov	x0, x19
	mov	w2, #7
	bl	_nvkm_wri2cr
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #7
	mov	x3, x23
	bl	_nvkm_wri2cr
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #67
	mov	w3, #5
	bl	_nvkm_wri2cr
	mov	w0, #5
	bl	_mdelay
	cbz	w21, LBB0_2
; %bb.1:
	mov	w25, #0
	mov	w24, #0
	neg	w23, w26
Lloh3:
	adrp	x26, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x26, [x26, _I2C_M_RD@GOTPAGEOFF]
	mov	x27, x21
	b	LBB0_6
LBB0_2:
	mov	w23, #0
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #67
	mov	w3, #0
	bl	_nvkm_wri2cr
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh5:
	adrp	x26, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x26, [x26, _I2C_M_RD@GOTPAGEOFF]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #24
	sub	w27, w27, #1
	cbz	w27, LBB0_20
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	w9, [x26]
	ldp	w10, w8, [x22]
	tst	w9, w10
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #80
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #64
	mov	w3, #160
	bl	_nvkm_wri2cr
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #65
	mov	x3, x24
	bl	_nvkm_wri2cr
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #66
	mov	x3, x25
	bl	_nvkm_wri2cr
	ldr	w1, [x20]
	ldr	w3, [x22, #8]
	mov	x0, x19
	mov	w2, #68
	bl	_nvkm_wri2cr
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #69
	mov	w3, #0
	bl	_nvkm_wri2cr
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #67
	mov	w3, #1
	bl	_nvkm_wri2cr
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	mov	w26, #33
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #70
	bl	_nvkm_rdi2cr
	tbz	w0, #4, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	w0, #5
	bl	_mdelay
	subs	w26, w26, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #71
	bl	_nvkm_rdi2cr
	ldr	x8, [x22, #16]
	str	w0, [x8, x28, lsl #2]
	add	x28, x28, #1
	ldrsw	x8, [x22, #8]
	cmp	x28, x8
	b.lt	LBB0_10
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #48
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #80
	b.ne	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #16]
	ldr	w25, [x8]
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #16]
	ldr	w24, [x8]
	b	LBB0_5
LBB0_20:
	mov	x23, x21
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_anx9805_bus_xfer
.subsections_via_symbols
