	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1550_xfer
_au1550_xfer:                           ## @au1550_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, %r14d
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	(%r15), %r12
	movq	_PSC_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_au_sync
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r13d
	movl	$1, %r12d
	movq	_I2C_M_RD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%rbx), %esi
	movl	(%r14), %edx
	andl	(%rbx), %edx
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	sete	%cl
	movq	%r15, %rdi
	callq	_do_address
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	movl	16(%rbx), %esi
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_i2c_read
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_i2c_write
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	sete	%dl
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rbx
	leaq	1(%r12), %rcx
	cmpq	%r13, %r12
	movq	%rcx, %r12
	jb	LBB0_2
	jmp	LBB0_10
LBB0_3:
	xorl	%edx, %edx
	movl	%ecx, %eax
LBB0_10:
	testb	%dl, %dl
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmovel	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_11:
	movq	_PSC_CTRL_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_au_sync
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_CTRL_ENABLE,4,2            ## @PSC_CTRL_ENABLE
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_PSC_CTRL_SUSPEND,4,2           ## @PSC_CTRL_SUSPEND
	.no_dead_strip	_au1550_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1550_xfer
_au1550_xfer:                           ; @au1550_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _PSC_CTRL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_CTRL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
	bl	_au_sync
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w23, w19
	mov	w24, #1
Lloh3:
	adrp	x25, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x25, [x25, _I2C_M_RD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #20]
	ldr	w8, [x20]
	ldr	w9, [x25]
	and	w2, w9, w8
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w3, eq
	mov	x0, x21
	bl	_do_address
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x25]
	ldr	w1, [x20, #16]
	mov	x0, x21
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_i2c_read
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_i2c_write
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #24
	add	x9, x24, #1
	cmp	x24, x23
	mov	x24, x9
	b.lo	LBB0_2
	b	LBB0_11
LBB0_10:
	mov	w8, #0
LBB0_11:
	cmp	w8, #0
	csel	w19, w19, w0, ne
LBB0_12:
Lloh5:
	adrp	x8, _PSC_CTRL_SUSPEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSC_CTRL_SUSPEND@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22]
	bl	_au_sync
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_CTRL_ENABLE,4,2            ; @PSC_CTRL_ENABLE
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_PSC_CTRL_SUSPEND,4,2           ; @PSC_CTRL_SUSPEND
	.no_dead_strip	_au1550_xfer
.subsections_via_symbols
