	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_mac_config
_nb8800_mac_config:                     ## @nb8800_mac_config
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	xorl	%r15d, %r15d
	cmpl	$0, 12(%r14)
	movl	$0, %r13d
	cmovel	%ebx, %r13d
	movq	_RGMII_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_GMAC_MODE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_phy_interface_is_rgmii
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_RGMII_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	orl	%r13d, %r15d
	movq	_GMAC_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	$125000000, %r12d               ## imm = 0x7735940
	movl	%r15d, %r13d
	movl	$255, %r15d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_1:
	movl	$25000000, %r12d                ## imm = 0x17D7840
	movl	$128, %r15d
LBB0_5:
	orl	%edx, %ebx
	orl	%esi, %ebx
	movl	8(%r14), %edi
	callq	_clk_get_rate
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_DIV_ROUND_UP
	movq	_NB8800_IC_THRESHOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nb8800_writeb
	movq	_NB8800_SLOT_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_nb8800_writeb
	movq	_NB8800_MAC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nb8800_maskb                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_RGMII_MODE,4,2                 ## @RGMII_MODE
	.comm	_HALF_DUPLEX,4,2                ## @HALF_DUPLEX
	.comm	_GMAC_MODE,4,2                  ## @GMAC_MODE
	.comm	_NB8800_IC_THRESHOLD,4,2        ## @NB8800_IC_THRESHOLD
	.comm	_NB8800_SLOT_TIME,4,2           ## @NB8800_SLOT_TIME
	.comm	_NB8800_MAC_MODE,4,2            ## @NB8800_MAC_MODE
	.no_dead_strip	_nb8800_mac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_mac_config
_nb8800_mac_config:                     ; @nb8800_mac_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh2:
	adrp	x26, _RGMII_MODE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RGMII_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w23, [x26]
Lloh5:
	adrp	x10, _HALF_DUPLEX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HALF_DUPLEX@GOTPAGEOFF]
Lloh7:
	adrp	x22, _GMAC_MODE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GMAC_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x10]
	ldr	w24, [x22]
	ldr	w10, [x0, #12]
	cmp	w10, #0
	csel	w20, w25, wzr, eq
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_phy_interface_is_rgmii
	ldr	w8, [x26]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w20
	ldr	w9, [x22]
	orr	w20, w8, w9
	mov	w22, #22848
	movk	w22, #1907, lsl #16
	mov	w21, #255
	b	LBB0_3
LBB0_2:
	mov	w22, #30784
	movk	w22, #381, lsl #16
	mov	w21, #128
LBB0_3:
	orr	w8, w25, w23
	orr	w23, w8, w24
	ldr	w0, [x19, #8]
	bl	_clk_get_rate
	mov	x1, x0
	mov	x0, x22
	bl	_DIV_ROUND_UP
	mov	x2, x0
Lloh10:
	adrp	x8, _NB8800_IC_THRESHOLD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NB8800_IC_THRESHOLD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nb8800_writeb
Lloh13:
	adrp	x8, _NB8800_SLOT_TIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NB8800_SLOT_TIME@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_nb8800_writeb
Lloh16:
	adrp	x8, _NB8800_MAC_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NB8800_MAC_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nb8800_maskb
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_RGMII_MODE,4,2                 ; @RGMII_MODE
	.comm	_HALF_DUPLEX,4,2                ; @HALF_DUPLEX
	.comm	_GMAC_MODE,4,2                  ; @GMAC_MODE
	.comm	_NB8800_IC_THRESHOLD,4,2        ; @NB8800_IC_THRESHOLD
	.comm	_NB8800_SLOT_TIME,4,2           ; @NB8800_SLOT_TIME
	.comm	_NB8800_MAC_MODE,4,2            ; @NB8800_MAC_MODE
	.no_dead_strip	_nb8800_mac_config
.subsections_via_symbols
