	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mace_init
_mace_init:                             ## @mace_init
	.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	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MACE_BIUCC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$1, %ecx
	callq	_mace_write
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mace_read
	testb	$1, %al
	je	LBB0_6
## %bb.1:
	movl	$501, %ebx                      ## imm = 0x1F5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mace_read
	testb	$1, %al
	jne	LBB0_2
LBB0_6:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_mace_write
	movq	_MACE_FIFOCC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$15, %ecx
	callq	_mace_write
	movq	_MACE_RCVFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_mace_write
	movq	_MACE_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$255, %ecx
	callq	_mace_write
	movq	_if_port@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MACE_PLSCC@GOTPCREL(%rip), %rax
	cmpl	$1, %ecx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	cmpl	$2, %ecx
	jne	LBB0_10
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movl	$2, %ecx
	jmp	LBB0_11
LBB0_10:
	movl	$4, %ecx
	movq	_MACE_PHYCC@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mace_write
	movq	_MACE_IAC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MACE_IAC_ADDRCHG@GOTPCREL(%rip), %r13
	movq	_MACE_IAC_PHYADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r13), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mace_write
	movl	$501, %ebx                      ## imm = 0x1F5
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mace_read
	testl	%eax, (%r13)
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	decl	%ebx
	jne	LBB0_12
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_pr_err
	movl	$-1, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	_MACE_PADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movsbl	(%r12,%rbx), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mace_write
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	_MACE_MACCC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_mace_write
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MACE_BIUCC,4,2                 ## @MACE_BIUCC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset failed, card removed?\n"

	.comm	_MACE_FIFOCC,4,2                ## @MACE_FIFOCC
	.comm	_MACE_RCVFC,4,2                 ## @MACE_RCVFC
	.comm	_MACE_IMR,4,2                   ## @MACE_IMR
	.comm	_if_port,4,2                    ## @if_port
	.comm	_MACE_PLSCC,4,2                 ## @MACE_PLSCC
	.comm	_MACE_PHYCC,4,2                 ## @MACE_PHYCC
	.comm	_MACE_IAC,4,2                   ## @MACE_IAC
	.comm	_MACE_IAC_ADDRCHG,4,2           ## @MACE_IAC_ADDRCHG
	.comm	_MACE_IAC_PHYADDR,4,2           ## @MACE_IAC_PHYADDR
L_.str.1:                               ## @.str.1
	.asciz	"ADDRCHG timeout, card removed?\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MACE_PADR,4,2                  ## @MACE_PADR
	.comm	_MACE_MACCC,4,2                 ## @MACE_MACCC
	.no_dead_strip	_mace_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mace_init
_mace_init:                             ; @mace_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MACE_BIUCC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MACE_BIUCC@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w3, #1
	bl	_mace_write
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_mace_read
	tbz	w0, #0, LBB0_4
; %bb.1:
	mov	w23, #501
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w23, w23, #1
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_mace_read
	tbnz	w0, #0, LBB0_2
LBB0_4:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_mace_write
Lloh2:
	adrp	x8, _MACE_FIFOCC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MACE_FIFOCC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #15
	bl	_mace_write
Lloh5:
	adrp	x8, _MACE_RCVFC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MACE_RCVFC@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_mace_write
Lloh8:
	adrp	x8, _MACE_IMR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MACE_IMR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #255
	bl	_mace_write
Lloh11:
	adrp	x8, _if_port@GOTPAGE
Lloh12:
	ldr	x8, [x8, _if_port@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	w9, #2
Lloh14:
	adrp	x10, _MACE_PLSCC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MACE_PLSCC@GOTPAGEOFF]
	mov	w11, #4
Lloh16:
	adrp	x12, _MACE_PHYCC@GOTPAGE
Lloh17:
	ldr	x12, [x12, _MACE_PHYCC@GOTPAGEOFF]
Lloh18:
	adrp	x13, _MACE_PLSCC@GOTPAGE
Lloh19:
	ldr	x13, [x13, _MACE_PLSCC@GOTPAGEOFF]
	cmp	w8, #2
	csel	w11, w11, wzr, ne
	csel	x12, x12, x13, ne
	cmp	w8, #1
	csel	w3, w9, w11, eq
	csel	x8, x10, x12, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mace_write
Lloh20:
	adrp	x22, _MACE_IAC@GOTPAGE
Lloh21:
	ldr	x22, [x22, _MACE_IAC@GOTPAGEOFF]
Lloh22:
	adrp	x23, _MACE_IAC_ADDRCHG@GOTPAGE
Lloh23:
	ldr	x23, [x23, _MACE_IAC_ADDRCHG@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w8, [x23]
Lloh24:
	adrp	x9, _MACE_IAC_PHYADDR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MACE_IAC_PHYADDR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_mace_write
	mov	w24, #501
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_mace_read
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_5
; %bb.7:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh29:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh30:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x23, #0
Lloh31:
	adrp	x24, _MACE_PADR@GOTPAGE
Lloh32:
	ldr	x24, [x24, _MACE_PADR@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	ldrsb	w3, [x21, x23]
	mov	x0, x20
	mov	x1, x19
	bl	_mace_write
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_10
LBB0_11:
Lloh33:
	adrp	x8, _MACE_MACCC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MACE_MACCC@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_mace_write
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
LBB0_13:
	bl	_pr_err
	mov	w0, #-1
LBB0_14:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MACE_BIUCC,4,2                 ; @MACE_BIUCC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset failed, card removed?\n"

	.comm	_MACE_FIFOCC,4,2                ; @MACE_FIFOCC
	.comm	_MACE_RCVFC,4,2                 ; @MACE_RCVFC
	.comm	_MACE_IMR,4,2                   ; @MACE_IMR
	.comm	_if_port,4,2                    ; @if_port
	.comm	_MACE_PLSCC,4,2                 ; @MACE_PLSCC
	.comm	_MACE_PHYCC,4,2                 ; @MACE_PHYCC
	.comm	_MACE_IAC,4,2                   ; @MACE_IAC
	.comm	_MACE_IAC_ADDRCHG,4,2           ; @MACE_IAC_ADDRCHG
	.comm	_MACE_IAC_PHYADDR,4,2           ; @MACE_IAC_PHYADDR
l_.str.1:                               ; @.str.1
	.asciz	"ADDRCHG timeout, card removed?\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MACE_PADR,4,2                  ; @MACE_PADR
	.comm	_MACE_MACCC,4,2                 ; @MACE_MACCC
	.no_dead_strip	_mace_init
.subsections_via_symbols
