	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8851_eeprom_regwrite
_ks8851_eeprom_regwrite:                ## @ks8851_eeprom_regwrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rdi)
	movl	$0, %edx
	je	LBB0_2
## %bb.1:
	movq	_EEPCR_EESRWA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movq	_EEPCR_EESA@GOTPCREL(%rip), %rsi
	cmpq	$0, 16(%rdi)
	movl	$0, %eax
	je	LBB0_4
## %bb.3:
	movq	_EEPCR_EEDO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	(%rsi), %edx
	cmpq	$0, 8(%rdi)
	movl	$0, %esi
	je	LBB0_6
## %bb.5:
	movq	_EEPCR_EESCK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_6:
	orl	%esi, %eax
	orl	%eax, %edx
	movq	32(%rdi), %rax
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.7:
	movq	_EEPCR_EECS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%ecx, %edx
	movq	_KS_EEPCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	popq	%rbp
	jmp	_ks8851_wrreg16                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPCR_EESA,4,2                 ## @EEPCR_EESA
	.comm	_EEPCR_EESRWA,4,2               ## @EEPCR_EESRWA
	.comm	_EEPCR_EEDO,4,2                 ## @EEPCR_EEDO
	.comm	_EEPCR_EESCK,4,2                ## @EEPCR_EESCK
	.comm	_EEPCR_EECS,4,2                 ## @EEPCR_EECS
	.comm	_KS_EEPCR,4,2                   ## @KS_EEPCR
	.no_dead_strip	_ks8851_eeprom_regwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8851_eeprom_regwrite
_ks8851_eeprom_regwrite:                ; @ks8851_eeprom_regwrite
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _EEPCR_EESA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EEPCR_EESA@GOTPAGEOFF]
	ldp	x10, x8, [x0, #24]
	ldr	x11, [x0, #16]
	cmp	x10, #0
Lloh2:
	adrp	x10, _EEPCR_EESRWA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EEPCR_EESRWA@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _EEPCR_EEDO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EEPCR_EEDO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _EEPCR_EESCK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _EEPCR_EESCK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	ldp	x12, x11, [x0]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _EEPCR_EECS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _EEPCR_EECS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x12, #0
	csel	w10, wzr, w10, eq
	orr	w2, w9, w10
Lloh15:
	adrp	x9, _KS_EEPCR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KS_EEPCR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x8
	b	_ks8851_wrreg16
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPCR_EESA,4,2                 ; @EEPCR_EESA
	.comm	_EEPCR_EESRWA,4,2               ; @EEPCR_EESRWA
	.comm	_EEPCR_EEDO,4,2                 ; @EEPCR_EEDO
	.comm	_EEPCR_EESCK,4,2                ; @EEPCR_EESCK
	.comm	_EEPCR_EECS,4,2                 ; @EEPCR_EECS
	.comm	_KS_EEPCR,4,2                   ; @KS_EEPCR
	.no_dead_strip	_ks8851_eeprom_regwrite
.subsections_via_symbols
