	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether3_init_for_open
_ether3_init_for_open:                  ## @ether3_init_for_open
	.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	_CFG2_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_CONFIG2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ether3_outw
	movl	$4, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	_priv
	movl	$0, 4(%rax)
	movq	_CMD_RXOFF@GOTPCREL(%rip), %rax
	movq	_CMD_TXOFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movq	_REG_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ether3_inw
	movq	_STAT_RXON@GOTPCREL(%rip), %r13
	movq	_STAT_TXON@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	orl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_barrier
	movl	(%r12), %edi
	callq	_ether3_inw
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_priv
	movq	_CFG1_BUFSELSTAT0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	8(%rax), %edi
	movq	_REG_CONFIG1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ether3_outw
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_REG_BUFWIN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_ether3_outb
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	callq	_ether3_outb
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movl	(%r13), %esi
	callq	_ether3_outb
	movq	(%r14), %rax
	movl	12(%rax), %edi
	movl	(%r13), %esi
	callq	_ether3_outb
	movq	(%r14), %rax
	movl	16(%rax), %edi
	movl	(%r13), %esi
	callq	_ether3_outb
	movq	(%r14), %rax
	movl	20(%rax), %edi
	movl	(%r13), %esi
	callq	_ether3_outb
	movq	%r14, %rdi
	callq	_priv
	movq	$0, 24(%rax)
	movq	%r14, %rdi
	callq	_priv
	movq	$0, 16(%rax)
	movq	_CFG2_CTRLO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_priv
	orl	%ebx, 12(%rax)
	movq	_RX_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_priv
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_priv
	movq	_CFG1_TRANSEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	8(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outw
	movq	_TX_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$8, %edi
	decl	%edi
	movl	(%r13), %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	%r14, %rdi
	callq	_priv
	movl	(%rax), %edi
	sarl	$8, %edi
	movq	_REG_RECVEND@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	12(%rax), %edi
	movl	(%r15), %esi
	callq	_ether3_outw
	movq	%r14, %rdi
	callq	_priv
	movq	_CFG1_LOCBUFMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	8(%rax), %edi
	movl	(%r12), %esi
	callq	_ether3_outw
	movq	_buffer_write@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ether3_setbuffer
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ether3_writelong
	movq	_CMD_ENINTRX@GOTPCREL(%rip), %rax
	movq	_CMD_ENINTTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_priv
	movl	%ebx, 4(%rax)
	movq	%r14, %rdi
	callq	_priv
	movq	_CMD_RXON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	4(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether3_outw                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG2_RESET,4,2                 ## @CFG2_RESET
	.comm	_REG_CONFIG2,4,2                ## @REG_CONFIG2
	.comm	_CMD_RXOFF,4,2                  ## @CMD_RXOFF
	.comm	_CMD_TXOFF,4,2                  ## @CMD_TXOFF
	.comm	_REG_COMMAND,4,2                ## @REG_COMMAND
	.comm	_REG_STATUS,4,2                 ## @REG_STATUS
	.comm	_STAT_RXON,4,2                  ## @STAT_RXON
	.comm	_STAT_TXON,4,2                  ## @STAT_TXON
	.comm	_CFG1_BUFSELSTAT0,4,2           ## @CFG1_BUFSELSTAT0
	.comm	_REG_CONFIG1,4,2                ## @REG_CONFIG1
	.comm	_REG_BUFWIN,4,2                 ## @REG_BUFWIN
	.comm	_CFG2_CTRLO,4,2                 ## @CFG2_CTRLO
	.comm	_RX_START,4,2                   ## @RX_START
	.comm	_CFG1_TRANSEND,4,2              ## @CFG1_TRANSEND
	.comm	_TX_END,4,2                     ## @TX_END
	.comm	_REG_RECVPTR,4,2                ## @REG_RECVPTR
	.comm	_REG_RECVEND,4,2                ## @REG_RECVEND
	.comm	_REG_TRANSMITPTR,4,2            ## @REG_TRANSMITPTR
	.comm	_CFG1_LOCBUFMEM,4,2             ## @CFG1_LOCBUFMEM
	.comm	_buffer_write,4,2               ## @buffer_write
	.comm	_CMD_ENINTRX,4,2                ## @CMD_ENINTRX
	.comm	_CMD_ENINTTX,4,2                ## @CMD_ENINTTX
	.comm	_CMD_RXON,4,2                   ## @CMD_RXON
	.no_dead_strip	_ether3_init_for_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether3_init_for_open
_ether3_init_for_open:                  ; @ether3_init_for_open
	.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	x8, _CFG2_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG2_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _REG_CONFIG2@GOTPAGE
Lloh4:
	ldr	x21, [x21, _REG_CONFIG2@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ether3_outw
	mov	w0, #4
	bl	_udelay
	mov	x0, x19
	bl	_priv
	str	wzr, [x0, #4]
Lloh5:
	adrp	x8, _CMD_RXOFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_RXOFF@GOTPAGEOFF]
Lloh7:
	adrp	x9, _CMD_TXOFF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CMD_TXOFF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x20, _REG_COMMAND@GOTPAGE
Lloh12:
	ldr	x20, [x20, _REG_COMMAND@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ether3_outw
Lloh13:
	adrp	x22, _REG_STATUS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _REG_STATUS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ether3_inw
Lloh15:
	adrp	x23, _STAT_RXON@GOTPAGE
Lloh16:
	ldr	x23, [x23, _STAT_RXON@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh17:
	adrp	x24, _STAT_TXON@GOTPAGE
Lloh18:
	ldr	x24, [x24, _STAT_TXON@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_barrier
	ldr	w0, [x22]
	bl	_ether3_inw
	ldr	w8, [x23]
	b	LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_priv
Lloh19:
	adrp	x8, _CFG1_BUFSELSTAT0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CFG1_BUFSELSTAT0@GOTPAGEOFF]
	ldr	w9, [x0, #8]
Lloh21:
	ldr	w8, [x8]
	orr	w0, w8, w9
Lloh22:
	adrp	x22, _REG_CONFIG1@GOTPAGE
Lloh23:
	ldr	x22, [x22, _REG_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ether3_outw
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh24:
	adrp	x23, _REG_BUFWIN@GOTPAGE
Lloh25:
	ldr	x23, [x23, _REG_BUFWIN@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ether3_outb
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	bl	_ether3_outb
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [x23]
	bl	_ether3_outb
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	ldr	w1, [x23]
	bl	_ether3_outb
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	ldr	w1, [x23]
	bl	_ether3_outb
	ldr	x8, [x19]
	ldr	w0, [x8, #20]
	ldr	w1, [x23]
	bl	_ether3_outb
	mov	x0, x19
	bl	_priv
	str	xzr, [x0, #24]
	mov	x0, x19
	bl	_priv
	str	xzr, [x0, #16]
Lloh26:
	adrp	x8, _CFG2_CTRLO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CFG2_CTRLO@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0, #12]
	orr	w8, w8, w24
	str	w8, [x0, #12]
Lloh29:
	adrp	x8, _RX_START@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RX_START@GOTPAGEOFF]
Lloh31:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_priv
	str	w24, [x0]
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0, #8]
Lloh32:
	adrp	x9, _CFG1_TRANSEND@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CFG1_TRANSEND@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x22]
	bl	_ether3_outw
Lloh35:
	adrp	x8, _TX_END@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_END@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	asr	w8, w8, #8
	sub	w0, w8, #1
	ldr	w1, [x23]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w0, [x0]
Lloh38:
	adrp	x8, _REG_RECVPTR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_RECVPTR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0]
	asr	w0, w8, #8
Lloh41:
	adrp	x8, _REG_RECVEND@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REG_RECVEND@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_ether3_outw
Lloh44:
	adrp	x8, _REG_TRANSMITPTR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REG_TRANSMITPTR@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w0, [x0, #12]
	ldr	w1, [x21]
	bl	_ether3_outw
	mov	x0, x19
	bl	_priv
	ldr	w8, [x0, #8]
Lloh47:
	adrp	x9, _CFG1_LOCBUFMEM@GOTPAGE
Lloh48:
	ldr	x9, [x9, _CFG1_LOCBUFMEM@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x22]
	bl	_ether3_outw
Lloh50:
	adrp	x8, _buffer_write@GOTPAGE
Lloh51:
	ldr	x8, [x8, _buffer_write@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ether3_setbuffer
	mov	x0, x19
	mov	w1, #0
	bl	_ether3_writelong
Lloh53:
	adrp	x8, _CMD_ENINTRX@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CMD_ENINTRX@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _CMD_ENINTTX@GOTPAGE
Lloh57:
	ldr	x9, [x9, _CMD_ENINTTX@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x19
	bl	_priv
	str	w21, [x0, #4]
	mov	x0, x19
	bl	_priv
Lloh59:
	adrp	x8, _CMD_RXON@GOTPAGE
Lloh60:
	ldr	x8, [x8, _CMD_RXON@GOTPAGEOFF]
	ldr	w9, [x0, #4]
Lloh61:
	ldr	w8, [x8]
	orr	w0, w8, w9
	ldr	w1, [x20]
	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	_ether3_outw
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG2_RESET,4,2                 ; @CFG2_RESET
	.comm	_REG_CONFIG2,4,2                ; @REG_CONFIG2
	.comm	_CMD_RXOFF,4,2                  ; @CMD_RXOFF
	.comm	_CMD_TXOFF,4,2                  ; @CMD_TXOFF
	.comm	_REG_COMMAND,4,2                ; @REG_COMMAND
	.comm	_REG_STATUS,4,2                 ; @REG_STATUS
	.comm	_STAT_RXON,4,2                  ; @STAT_RXON
	.comm	_STAT_TXON,4,2                  ; @STAT_TXON
	.comm	_CFG1_BUFSELSTAT0,4,2           ; @CFG1_BUFSELSTAT0
	.comm	_REG_CONFIG1,4,2                ; @REG_CONFIG1
	.comm	_REG_BUFWIN,4,2                 ; @REG_BUFWIN
	.comm	_CFG2_CTRLO,4,2                 ; @CFG2_CTRLO
	.comm	_RX_START,4,2                   ; @RX_START
	.comm	_CFG1_TRANSEND,4,2              ; @CFG1_TRANSEND
	.comm	_TX_END,4,2                     ; @TX_END
	.comm	_REG_RECVPTR,4,2                ; @REG_RECVPTR
	.comm	_REG_RECVEND,4,2                ; @REG_RECVEND
	.comm	_REG_TRANSMITPTR,4,2            ; @REG_TRANSMITPTR
	.comm	_CFG1_LOCBUFMEM,4,2             ; @CFG1_LOCBUFMEM
	.comm	_buffer_write,4,2               ; @buffer_write
	.comm	_CMD_ENINTRX,4,2                ; @CMD_ENINTRX
	.comm	_CMD_ENINTTX,4,2                ; @CMD_ENINTTX
	.comm	_CMD_RXON,4,2                   ; @CMD_RXON
	.no_dead_strip	_ether3_init_for_open
.subsections_via_symbols
