	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether3_init_2
_ether3_init_2:                         ## @ether3_init_2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CFG1_RECVCOMPSTAT0@GOTPCREL(%rip), %rax
	movq	_CFG1_DMABURST8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	callq	_priv
	movl	%ebx, 4(%rax)
	movq	_CFG2_CTRLO@GOTPCREL(%rip), %rax
	movq	_CFG2_RECVCRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_CFG2_ERRENCRC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_priv
	movl	%ebx, 8(%rax)
	movq	%r14, %rdi
	callq	_priv
	movl	$0, 12(%rax)
	movq	%r14, %rdi
	callq	_priv
	movq	_CFG1_BUFSELSTAT0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	4(%rax), %edi
	movq	_REG_CONFIG1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ether3_outw
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_REG_BUFWIN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ether3_outb
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outb
	movq	8(%r14), %rax
	movl	8(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outb
	movq	8(%r14), %rax
	movl	12(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outb
	movq	8(%r14), %rax
	movl	16(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outb
	movq	8(%r14), %rax
	movl	20(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outb
	movl	(%r14), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_CFG1_RECVSPECBROAD@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_CFG1_RECVSPECBRMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	_CFG1_RECVPROMISC@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ebx
	movq	%r14, %rdi
	callq	_priv
	orl	%ebx, 4(%rax)
	movq	%r14, %rdi
	callq	_priv
	movq	_CFG1_TRANSEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	4(%rax), %edi
	movl	(%r15), %esi
	callq	_ether3_outw
	movq	_TX_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$8, %edi
	decl	%edi
	movl	(%r12), %esi
	callq	_ether3_outw
	movq	%r14, %rdi
	callq	_priv
	movl	(%rax), %edi
	movq	_REG_RECVPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movq	_REG_TRANSMITPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_ether3_outw
	movq	%r14, %rdi
	callq	_priv
	movl	(%rax), %edi
	sarl	$8, %edi
	movq	_REG_RECVEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movq	%r14, %rdi
	callq	_priv
	movl	8(%rax), %edi
	movq	_REG_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movq	%r14, %rdi
	callq	_priv
	movq	_CFG1_LOCBUFMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	4(%rax), %edi
	movl	(%r15), %esi
	callq	_ether3_outw
	movq	%r14, %rdi
	callq	_priv
	movl	12(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movq	%r14, %rdi
	movl	$90, %esi
	callq	_ether3_ramtest
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movl	$30, %esi
	callq	_ether3_ramtest
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_buffer_write@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ether3_setbuffer
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ether3_writelong
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG1_RECVCOMPSTAT0,4,2         ## @CFG1_RECVCOMPSTAT0
	.comm	_CFG1_DMABURST8,4,2             ## @CFG1_DMABURST8
	.comm	_CFG2_CTRLO,4,2                 ## @CFG2_CTRLO
	.comm	_CFG2_RECVCRC,4,2               ## @CFG2_RECVCRC
	.comm	_CFG2_ERRENCRC,4,2              ## @CFG2_ERRENCRC
	.comm	_CFG1_BUFSELSTAT0,4,2           ## @CFG1_BUFSELSTAT0
	.comm	_REG_CONFIG1,4,2                ## @REG_CONFIG1
	.comm	_REG_BUFWIN,4,2                 ## @REG_BUFWIN
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_CFG1_RECVPROMISC,4,2           ## @CFG1_RECVPROMISC
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_CFG1_RECVSPECBRMULTI,4,2       ## @CFG1_RECVSPECBRMULTI
	.comm	_CFG1_RECVSPECBROAD,4,2         ## @CFG1_RECVSPECBROAD
	.comm	_CFG1_TRANSEND,4,2              ## @CFG1_TRANSEND
	.comm	_TX_END,4,2                     ## @TX_END
	.comm	_REG_RECVPTR,4,2                ## @REG_RECVPTR
	.comm	_REG_TRANSMITPTR,4,2            ## @REG_TRANSMITPTR
	.comm	_REG_RECVEND,4,2                ## @REG_RECVEND
	.comm	_REG_CONFIG2,4,2                ## @REG_CONFIG2
	.comm	_CFG1_LOCBUFMEM,4,2             ## @CFG1_LOCBUFMEM
	.comm	_REG_COMMAND,4,2                ## @REG_COMMAND
	.comm	_buffer_write,4,2               ## @buffer_write
	.no_dead_strip	_ether3_init_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether3_init_2
_ether3_init_2:                         ; @ether3_init_2
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CFG1_RECVCOMPSTAT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG1_RECVCOMPSTAT0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CFG1_DMABURST8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CFG1_DMABURST8@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	bl	_priv
	str	w20, [x0, #4]
Lloh6:
	adrp	x8, _CFG2_CTRLO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CFG2_CTRLO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CFG2_RECVCRC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CFG2_RECVCRC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _CFG2_ERRENCRC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CFG2_ERRENCRC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_priv
	str	w20, [x0, #8]
	mov	x0, x19
	bl	_priv
	str	wzr, [x0, #12]
	mov	x0, x19
	bl	_priv
Lloh15:
	adrp	x8, _CFG1_BUFSELSTAT0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFG1_BUFSELSTAT0@GOTPAGEOFF]
	ldr	w9, [x0, #4]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w9
Lloh18:
	adrp	x20, _REG_CONFIG1@GOTPAGE
Lloh19:
	ldr	x20, [x20, _REG_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ether3_outw
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh20:
	adrp	x21, _REG_BUFWIN@GOTPAGE
Lloh21:
	ldr	x21, [x21, _REG_BUFWIN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ether3_outb
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	bl	_ether3_outb
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	ldr	w1, [x21]
	bl	_ether3_outb
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #12]
	ldr	w1, [x21]
	bl	_ether3_outb
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #16]
	ldr	w1, [x21]
	bl	_ether3_outb
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #20]
	ldr	w1, [x21]
	bl	_ether3_outb
	ldr	w8, [x19]
Lloh22:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _IFF_MULTICAST@GOTPAGE
Lloh26:
	ldr	x10, [x10, _IFF_MULTICAST@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _CFG1_RECVSPECBROAD@GOTPAGE
Lloh29:
	ldr	x11, [x11, _CFG1_RECVSPECBROAD@GOTPAGEOFF]
Lloh30:
	adrp	x12, _CFG1_RECVSPECBRMULTI@GOTPAGE
Lloh31:
	ldr	x12, [x12, _CFG1_RECVSPECBRMULTI@GOTPAGEOFF]
	tst	w10, w8
	csel	x10, x11, x12, eq
Lloh32:
	adrp	x11, _CFG1_RECVPROMISC@GOTPAGE
Lloh33:
	ldr	x11, [x11, _CFG1_RECVPROMISC@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w22, [x8]
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0, #4]
	orr	w8, w8, w22
	str	w8, [x0, #4]
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0, #4]
Lloh34:
	adrp	x9, _CFG1_TRANSEND@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CFG1_TRANSEND@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x20]
	bl	_ether3_outw
Lloh37:
	adrp	x8, _TX_END@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TX_END@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	asr	w8, w8, #8
	sub	w0, w8, #1
	ldr	w1, [x21]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w0, [x0]
Lloh40:
	adrp	x8, _REG_RECVPTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REG_RECVPTR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_ether3_outw
Lloh43:
	adrp	x8, _REG_TRANSMITPTR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _REG_TRANSMITPTR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0]
	asr	w0, w8, #8
Lloh46:
	adrp	x8, _REG_RECVEND@GOTPAGE
Lloh47:
	ldr	x8, [x8, _REG_RECVEND@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w0, [x0, #8]
Lloh49:
	adrp	x8, _REG_CONFIG2@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REG_CONFIG2@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0, #4]
Lloh52:
	adrp	x9, _CFG1_LOCBUFMEM@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CFG1_LOCBUFMEM@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x20]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w0, [x0, #12]
Lloh55:
	adrp	x8, _REG_COMMAND@GOTPAGE
Lloh56:
	ldr	x8, [x8, _REG_COMMAND@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	bl	_ether3_outw
	mov	x0, x19
	mov	w1, #90
	bl	_ether3_ramtest
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #30
	bl	_ether3_ramtest
	cbnz	w0, LBB0_3
; %bb.2:
Lloh58:
	adrp	x8, _buffer_write@GOTPAGE
Lloh59:
	ldr	x8, [x8, _buffer_write@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ether3_setbuffer
	mov	x0, x19
	mov	w1, #0
	bl	_ether3_writelong
	mov	w0, #0
LBB0_3:
	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	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG1_RECVCOMPSTAT0,4,2         ; @CFG1_RECVCOMPSTAT0
	.comm	_CFG1_DMABURST8,4,2             ; @CFG1_DMABURST8
	.comm	_CFG2_CTRLO,4,2                 ; @CFG2_CTRLO
	.comm	_CFG2_RECVCRC,4,2               ; @CFG2_RECVCRC
	.comm	_CFG2_ERRENCRC,4,2              ; @CFG2_ERRENCRC
	.comm	_CFG1_BUFSELSTAT0,4,2           ; @CFG1_BUFSELSTAT0
	.comm	_REG_CONFIG1,4,2                ; @REG_CONFIG1
	.comm	_REG_BUFWIN,4,2                 ; @REG_BUFWIN
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_CFG1_RECVPROMISC,4,2           ; @CFG1_RECVPROMISC
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_CFG1_RECVSPECBRMULTI,4,2       ; @CFG1_RECVSPECBRMULTI
	.comm	_CFG1_RECVSPECBROAD,4,2         ; @CFG1_RECVSPECBROAD
	.comm	_CFG1_TRANSEND,4,2              ; @CFG1_TRANSEND
	.comm	_TX_END,4,2                     ; @TX_END
	.comm	_REG_RECVPTR,4,2                ; @REG_RECVPTR
	.comm	_REG_TRANSMITPTR,4,2            ; @REG_TRANSMITPTR
	.comm	_REG_RECVEND,4,2                ; @REG_RECVEND
	.comm	_REG_CONFIG2,4,2                ; @REG_CONFIG2
	.comm	_CFG1_LOCBUFMEM,4,2             ; @CFG1_LOCBUFMEM
	.comm	_REG_COMMAND,4,2                ; @REG_COMMAND
	.comm	_buffer_write,4,2               ; @buffer_write
	.no_dead_strip	_ether3_init_2
.subsections_via_symbols
