	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmiphy_reg_write_buf
_hdmiphy_reg_write_buf:                 ## @hdmiphy_reg_write_buf
	.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	%ecx, %r13d
	movl	%esi, %ebx
	leal	(%rbx,%r13), %eax
	cmpl	$33, %eax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_7
LBB0_2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.8:
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_i2c_master_send
	xorl	%ecx, %ecx
	cmpl	%r13d, %eax
	cmovnel	%eax, %ecx
	jmp	LBB0_7
LBB0_3:
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.4:
	movl	%r13d, %r13d
	shll	$2, %ebx
	shlq	$2, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12), %edi
	leal	(%rbx,%r12), %eax
	movslq	%eax, %rsi
	addq	(%r15), %rsi
	callq	_writel
	addq	$4, %r12
	cmpq	%r12, %r13
	jne	LBB0_5
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdmiphy_reg_write_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmiphy_reg_write_buf
_hdmiphy_reg_write_buf:                 ; @hdmiphy_reg_write_buf
	.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
	add	w8, w3, w1
	cmp	w8, #33
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x19
	mov	x2, x21
	bl	_i2c_master_send
	cmp	w0, w21
	csel	w0, wzr, w0, eq
	b	LBB0_8
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.5:
	lsl	w22, w1, #2
	mov	w21, w21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19], #4
	ldr	x8, [x20]
	add	x1, x8, w22, sxtw
	bl	_writel
	add	w22, w22, #4
	subs	x21, x21, #1
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdmiphy_reg_write_buf
.subsections_via_symbols
