	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlr_i2c_xfer
_xlr_i2c_xfer:                          ## @xlr_i2c_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
	pushq	%rax
	.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
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	movl	8(%rax), %edi
	callq	_clk_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_3
## %bb.2:
	movl	12(%r15), %edi
	movq	_XLR_I2C_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$15, %edx
	callq	_xlr_i2c_wreg
LBB0_3:
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	movl	$1, %r14d
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, (%r15)
	movl	(%r13), %eax
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movl	4(%rbx), %ecx
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_xlr_i2c_rx
	testl	%eax, %eax
	je	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_xlr_i2c_tx
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$24, %rbx
	leaq	1(%r14), %rcx
	cmpq	%r12, %r14
	movq	%rcx, %r14
	jb	LBB0_6
LBB0_11:
	testl	%eax, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmovnel	%eax, %r12d
	cmpq	$0, 16(%r15)
	je	LBB0_14
LBB0_13:
	movl	12(%r15), %edi
	movq	_XLR_I2C_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_xlr_i2c_wreg
LBB0_14:
	movl	8(%r15), %edi
	callq	_clk_disable
	movq	$0, (%r15)
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r14d, %r12d
	cmpq	$0, 16(%r15)
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_I2C_INT_EN,4,2             ## @XLR_I2C_INT_EN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_xlr_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlr_i2c_xfer
_xlr_i2c_xfer:                          ; @xlr_i2c_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	x20, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_clk_enable
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x23, _XLR_I2C_INT_EN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XLR_I2C_INT_EN@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	ldr	w1, [x23]
	mov	w2, #15
	bl	_xlr_i2c_wreg
LBB0_3:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.4:
	mov	w22, w20
	mov	w24, #1
Lloh2:
	adrp	x25, _I2C_M_RD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _I2C_M_RD@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_xlr_i2c_tx
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #24
	cmp	w0, #0
	ccmp	x24, x22, #2, eq
	add	x24, x24, #1
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x21, [x19]
	ldr	w8, [x25]
	ldr	w1, [x21, #16]
	ldr	x2, [x21, #8]
	ldp	w9, w3, [x21]
	mov	x0, x19
	tst	w8, w9
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_xlr_i2c_rx
	b	LBB0_6
LBB0_9:
	cmp	w0, #0
	csel	w22, w20, w0, eq
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
LBB0_10:
	ldr	w0, [x19, #12]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_xlr_i2c_wreg
LBB0_11:
	ldr	w0, [x19, #8]
	bl	_clk_disable
	str	xzr, [x19]
LBB0_12:
	mov	x0, x22
	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
LBB0_13:
	mov	x22, x20
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_I2C_INT_EN,4,2             ; @XLR_I2C_INT_EN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_xlr_i2c_xfer
.subsections_via_symbols
