	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8851_eeprom_regread
_ks8851_eeprom_regread:                 ## @ks8851_eeprom_regread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_KS_EEPCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ks8851_rdreg16
	movq	_EEPCR_EESB@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, (%rbx)
	movq	_EEPCR_EESCK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 4(%rbx)
	movq	_EEPCR_EECS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_EEPCR,4,2                   ## @KS_EEPCR
	.comm	_EEPCR_EESB,4,2                 ## @EEPCR_EESB
	.comm	_EEPCR_EESCK,4,2                ## @EEPCR_EESCK
	.comm	_EEPCR_EECS,4,2                 ## @EEPCR_EECS
	.no_dead_strip	_ks8851_eeprom_regread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8851_eeprom_regread
_ks8851_eeprom_regread:                 ; @ks8851_eeprom_regread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _KS_EEPCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS_EEPCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ks8851_rdreg16
Lloh3:
	adrp	x8, _EEPCR_EESB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPCR_EESB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x19]
Lloh6:
	adrp	x8, _EEPCR_EESCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPCR_EESCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
Lloh9:
	adrp	x8, _EEPCR_EECS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPCR_EECS@GOTPAGEOFF]
	cset	w9, ne
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	stp	w9, w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_EEPCR,4,2                   ; @KS_EEPCR
	.comm	_EEPCR_EESB,4,2                 ; @EEPCR_EESB
	.comm	_EEPCR_EESCK,4,2                ; @EEPCR_EESCK
	.comm	_EEPCR_EECS,4,2                 ; @EEPCR_EECS
	.no_dead_strip	_ks8851_eeprom_regread
.subsections_via_symbols
