	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_init_net
_ks8695_init_net:                       ## @ks8695_init_net
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ks8695_refill_rxbuffers
	movq	_KS8695_RDLB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%r14), %edx
	movq	%r14, %rdi
	callq	_ks8695_writereg
	movq	_KS8695_TDLB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r14), %edx
	movq	%r14, %rdi
	callq	_ks8695_writereg
	movl	52(%r14), %esi
	movq	_ks8695_rx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %edi
	movl	40(%r14), %ecx
	callq	_ks8695_setup_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	48(%r14), %esi
	movq	_ks8695_tx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %edi
	movl	40(%r14), %ecx
	callq	_ks8695_setup_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	8(%r14), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:
	movl	40(%r14), %ecx
	movl	44(%r14), %esi
	movq	_ks8695_link_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ks8695_setup_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
	movq	_KS8695_DTXC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ks8695_readreg
	movl	(%rbx), %esi
	movq	_DTXC_TE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ks8695_writereg
	movq	_KS8695_DRXC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ks8695_readreg
	movl	(%rbx), %esi
	movq	_DRXC_RE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ks8695_writereg
	movq	_KS8695_DRSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ks8695_writereg
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS8695_RDLB,4,2                ## @KS8695_RDLB
	.comm	_KS8695_TDLB,4,2                ## @KS8695_TDLB
	.comm	_ks8695_rx_irq,4,2              ## @ks8695_rx_irq
	.comm	_ks8695_tx_irq,4,2              ## @ks8695_tx_irq
	.comm	_ks8695_link_irq,4,2            ## @ks8695_link_irq
	.comm	_KS8695_DTXC,4,2                ## @KS8695_DTXC
	.comm	_DTXC_TE,4,2                    ## @DTXC_TE
	.comm	_KS8695_DRXC,4,2                ## @KS8695_DRXC
	.comm	_DRXC_RE,4,2                    ## @DRXC_RE
	.comm	_KS8695_DRSC,4,2                ## @KS8695_DRSC
	.no_dead_strip	_ks8695_init_net
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_init_net
_ks8695_init_net:                       ; @ks8695_init_net
	.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
	bl	_ks8695_refill_rxbuffers
Lloh0:
	adrp	x8, _KS8695_RDLB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS8695_RDLB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #64]
	mov	x0, x19
	bl	_ks8695_writereg
Lloh3:
	adrp	x8, _KS8695_TDLB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KS8695_TDLB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #56]
	mov	x0, x19
	bl	_ks8695_writereg
	ldr	w0, [x19]
	ldr	w1, [x19, #52]
Lloh6:
	adrp	x8, _ks8695_rx_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ks8695_rx_irq@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19, #40]
	bl	_ks8695_setup_irq
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #48]
Lloh9:
	adrp	x8, _ks8695_tx_irq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ks8695_tx_irq@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x19, #40]
	bl	_ks8695_setup_irq
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _ks8695_link_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ks8695_link_irq@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldp	w3, w1, [x19, #40]
	bl	_ks8695_setup_irq
	cbnz	w0, LBB0_5
LBB0_4:
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
Lloh15:
	adrp	x20, _KS8695_DTXC@GOTPAGE
Lloh16:
	ldr	x20, [x20, _KS8695_DTXC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ks8695_readreg
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _DTXC_TE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DTXC_TE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_ks8695_writereg
Lloh20:
	adrp	x20, _KS8695_DRXC@GOTPAGE
Lloh21:
	ldr	x20, [x20, _KS8695_DRXC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ks8695_readreg
	ldr	w1, [x20]
Lloh22:
	adrp	x8, _DRXC_RE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DRXC_RE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_ks8695_writereg
Lloh25:
	adrp	x8, _KS8695_DRSC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KS8695_DRSC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ks8695_writereg
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KS8695_RDLB,4,2                ; @KS8695_RDLB
	.comm	_KS8695_TDLB,4,2                ; @KS8695_TDLB
	.comm	_ks8695_rx_irq,4,2              ; @ks8695_rx_irq
	.comm	_ks8695_tx_irq,4,2              ; @ks8695_tx_irq
	.comm	_ks8695_link_irq,4,2            ; @ks8695_link_irq
	.comm	_KS8695_DTXC,4,2                ; @KS8695_DTXC
	.comm	_DTXC_TE,4,2                    ; @DTXC_TE
	.comm	_KS8695_DRXC,4,2                ; @KS8695_DRXC
	.comm	_DRXC_RE,4,2                    ; @DRXC_RE
	.comm	_KS8695_DRSC,4,2                ; @KS8695_DRSC
	.no_dead_strip	_ks8695_init_net
.subsections_via_symbols
