	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_i2c_write
_dw_hdmi_i2c_write:                     ## @dw_hdmi_i2c_write
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	movb	(%rsi), %al
	movb	%al, 4(%r13)
	decl	%edx
	incq	%rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, (%r13)
LBB0_3:
	leaq	8(%r13), %r12
	movl	%edx, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %r15d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_reinit_completion
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r14), %esi
	movq	_HDMI_I2CM_DATAO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movzbl	4(%r13), %esi
	leal	1(%rsi), %eax
	movb	%al, 4(%r13)
	movq	_HDMI_I2CM_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hdmi_writeb
	movq	_HDMI_I2CM_OPERATION_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_I2CM_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movq	%rbx, %rdi
	callq	_dw_hdmi_i2c_wait
	incq	%r14
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_I2CM_DATAO,4,2            ## @HDMI_I2CM_DATAO
	.comm	_HDMI_I2CM_ADDRESS,4,2          ## @HDMI_I2CM_ADDRESS
	.comm	_HDMI_I2CM_OPERATION_WRITE,4,2  ## @HDMI_I2CM_OPERATION_WRITE
	.comm	_HDMI_I2CM_OPERATION,4,2        ## @HDMI_I2CM_OPERATION
	.no_dead_strip	_dw_hdmi_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_i2c_write
_dw_hdmi_i2c_write:                     ; @dw_hdmi_i2c_write
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
	ldr	w8, [x23]
	cbnz	w8, LBB0_2
; %bb.1:
	ldrb	w8, [x20], #1
	strb	w8, [x23, #4]
	sub	w19, w19, #1
	mov	w8, #1
	str	w8, [x23]
LBB0_2:
	add	x22, x23, #8
Lloh0:
	adrp	x24, _HDMI_I2CM_DATAO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HDMI_I2CM_DATAO@GOTPAGEOFF]
Lloh2:
	adrp	x25, _HDMI_I2CM_ADDRESS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HDMI_I2CM_ADDRESS@GOTPAGEOFF]
Lloh4:
	adrp	x26, _HDMI_I2CM_OPERATION_WRITE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _HDMI_I2CM_OPERATION_WRITE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _HDMI_I2CM_OPERATION@GOTPAGE
Lloh7:
	ldr	x27, [x27, _HDMI_I2CM_OPERATION@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w19, w19, #1
	mov	x0, x22
	bl	_reinit_completion
	ldrb	w1, [x20], #1
	ldr	w2, [x24]
	mov	x0, x21
	bl	_hdmi_writeb
	ldrb	w1, [x23, #4]
	add	w8, w1, #1
	strb	w8, [x23, #4]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_hdmi_writeb
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x21
	bl	_hdmi_writeb
	mov	x0, x21
	bl	_dw_hdmi_i2c_wait
	cbz	w0, LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_I2CM_DATAO,4,2            ; @HDMI_I2CM_DATAO
	.comm	_HDMI_I2CM_ADDRESS,4,2          ; @HDMI_I2CM_ADDRESS
	.comm	_HDMI_I2CM_OPERATION_WRITE,4,2  ; @HDMI_I2CM_OPERATION_WRITE
	.comm	_HDMI_I2CM_OPERATION,4,2        ; @HDMI_I2CM_OPERATION
	.no_dead_strip	_dw_hdmi_i2c_write
.subsections_via_symbols
