	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8842_read_mac_addr
_ks8842_read_mac_addr:                  ## @ks8842_read_mac_addr
	.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, %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movl	$-1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REG_MARL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_ks8842_read8
	movl	(%r12), %ecx
	addl	%r13d, %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%r15,%rcx,4)
	incq	%rbx
	movslq	(%r12), %rax
	decl	%r13d
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_MICREL_KS884X@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r14), %ebx
	movq	_REG_MARL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_ks8842_read16
	testl	%ebx, %ebx
	movq	_REG_MACAR1@GOTPCREL(%rip), %rbx
	movq	_REG_MACAR3@GOTPCREL(%rip), %rdx
	movq	%rdx, %rcx
	cmoveq	%rbx, %rcx
	movl	(%rcx), %ecx
	cmoveq	%rdx, %rbx
	movq	%r14, %rdi
	movl	$39, %esi
	movl	%eax, %edx
	callq	_ks8842_write16
	movq	_REG_MARM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_ks8842_read16
	movq	_REG_MACAR2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	$39, %esi
	movl	%eax, %edx
	callq	_ks8842_write16
	movq	_REG_MARH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_ks8842_read16
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$39, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks8842_write16                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_REG_MARL,8,3                   ## @REG_MARL
	.comm	_MICREL_KS884X,4,2              ## @MICREL_KS884X
	.comm	_REG_MACAR3,4,2                 ## @REG_MACAR3
	.comm	_REG_MARM,8,3                   ## @REG_MARM
	.comm	_REG_MACAR2,4,2                 ## @REG_MACAR2
	.comm	_REG_MARH,8,3                   ## @REG_MARH
	.comm	_REG_MACAR1,4,2                 ## @REG_MACAR1
	.no_dead_strip	_ks8842_read_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8842_read_mac_addr
_ks8842_read_mac_addr:                  ; @ks8842_read_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _REG_MARL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REG_MARL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x23, #0
	mov	w24, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x2, x23, x8
	mov	x0, x19
	mov	w1, #2
	bl	_ks8842_read8
	ldr	w8, [x22]
	add	w8, w24, w8
	str	w0, [x20, w8, sxtw #2]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	sub	w24, w24, #1
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w20, [x19]
Lloh4:
	adrp	x8, _MICREL_KS884X@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MICREL_KS884X@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	ldr	x2, [x21]
	mov	x0, x19
	mov	w1, #2
	bl	_ks8842_read16
	mov	x2, x0
Lloh7:
	adrp	x8, _REG_MACAR1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_MACAR1@GOTPAGEOFF]
Lloh9:
	adrp	x9, _REG_MACAR3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REG_MACAR3@GOTPAGEOFF]
	tst	w22, w20
	csel	x10, x8, x9, eq
	ldr	w3, [x10]
	csel	x20, x9, x8, eq
	mov	x0, x19
	mov	w1, #39
	bl	_ks8842_write16
Lloh11:
	adrp	x8, _REG_MARM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_MARM@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_ks8842_read16
	mov	x2, x0
Lloh14:
	adrp	x8, _REG_MACAR2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_MACAR2@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #39
	bl	_ks8842_write16
Lloh17:
	adrp	x8, _REG_MARH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_MARH@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_ks8842_read16
	mov	x2, x0
	ldr	w3, [x20]
	mov	x0, x19
	mov	w1, #39
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ks8842_write16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_REG_MARL,8,3                   ; @REG_MARL
	.comm	_MICREL_KS884X,4,2              ; @MICREL_KS884X
	.comm	_REG_MACAR3,4,2                 ; @REG_MACAR3
	.comm	_REG_MARM,8,3                   ; @REG_MARM
	.comm	_REG_MACAR2,4,2                 ; @REG_MACAR2
	.comm	_REG_MARH,8,3                   ; @REG_MARH
	.comm	_REG_MACAR1,4,2                 ; @REG_MACAR1
	.no_dead_strip	_ks8842_read_mac_addr
.subsections_via_symbols
