	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfer_read
_xfer_read:                             ## @xfer_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_i2c_get_adapdata
	movq	(%rax), %rbx
	movq	_I2C_STAT_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, 24(%rbx)
	movq	$0, 16(%rbx)
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_reinit_completion
	movl	(%r14), %esi
	shll	$20, %esi
	movq	_HI2C_EDID_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HI2C_ENABLE_TRANSACTION@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HDMI_HI2CHCR@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_HDMI_WRITE
	movl	(%r14), %edi
	callq	_HDMI_READ
	movq	(%rbx), %rax
	movq	_I2C_TRANSACTION_DONE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_3
## %bb.1:
	movq	_HZ@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	movq	%r15, %rdi
	callq	_wait_for_completion_interruptible_timeout
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_STAT_INIT,8,3              ## @I2C_STAT_INIT
	.comm	_HI2C_EDID_READ,4,2             ## @HI2C_EDID_READ
	.comm	_HI2C_ENABLE_TRANSACTION,4,2    ## @HI2C_ENABLE_TRANSACTION
	.comm	_HDMI_HI2CHCR,4,2               ## @HDMI_HI2CHCR
	.comm	_I2C_TRANSACTION_DONE,8,3       ## @I2C_TRANSACTION_DONE
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_xfer_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfer_read
_xfer_read:                             ; @xfer_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_i2c_get_adapdata
Lloh0:
	adrp	x8, _I2C_STAT_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_STAT_INIT@GOTPAGEOFF]
	ldr	x21, [x0]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x21]
	stp	xzr, x20, [x21, #16]
	add	x19, x21, #8
	mov	x0, x19
	bl	_reinit_completion
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _HI2C_EDID_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HI2C_EDID_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _HI2C_ENABLE_TRANSACTION@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HI2C_ENABLE_TRANSACTION@GOTPAGEOFF]
	orr	w8, w9, w8, lsl #20
Lloh8:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh9:
	adrp	x20, _HDMI_HI2CHCR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _HDMI_HI2CHCR@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_HDMI_WRITE
	ldr	w0, [x20]
	bl	_HDMI_READ
	ldr	x8, [x21]
Lloh11:
	adrp	x20, _I2C_TRANSACTION_DONE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _I2C_TRANSACTION_DONE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh13:
	adrp	x22, _HZ@GOTPAGE
Lloh14:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	mov	x0, x19
	bl	_wait_for_completion_interruptible_timeout
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_STAT_INIT,8,3              ; @I2C_STAT_INIT
	.comm	_HI2C_EDID_READ,4,2             ; @HI2C_EDID_READ
	.comm	_HI2C_ENABLE_TRANSACTION,4,2    ; @HI2C_ENABLE_TRANSACTION
	.comm	_HDMI_HI2CHCR,4,2               ; @HDMI_HI2CHCR
	.comm	_I2C_TRANSACTION_DONE,8,3       ; @I2C_TRANSACTION_DONE
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_xfer_read
.subsections_via_symbols
