	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_reconfigure_mac_wrapper
_falcon_reconfigure_mac_wrapper:        ## @falcon_reconfigure_mac_wrapper
	.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, %rbx
	movl	4(%rdi), %edi
	callq	_READ_ONCE
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movl	8(%rbx), %eax
	cmpl	$100, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$10000, %eax                    ## imm = 0x2710
	je	LBB0_2
## %bb.3:
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jne	LBB0_6
## %bb.4:
	movl	$2, %r10d
	jmp	LBB0_7
LBB0_5:
	movl	$1, %r10d
	jmp	LBB0_7
LBB0_2:
	movl	$3, %r10d
	jmp	LBB0_7
LBB0_6:
	xorl	%r10d, %r10d
LBB0_7:
	movq	_FRF_AB_MAC_XOFF_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FRF_AB_MAC_BCAD_ACPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FRF_AB_MAC_UC_PROM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	movq	_FRF_AB_MAC_LINK_STATUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_FRF_AB_MAC_SPEED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$1, %r8d
	pushq	%r10
	pushq	%rax
	pushq	$1
	pushq	%r11
	pushq	%rdi
	callq	_EF4_POPULATE_OWORD_5
	addq	$48, %rsp
	movq	%rbx, %rdi
	callq	_ef4_nic_rev
	movq	_EF4_REV_FALCON_B0@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jl	LBB0_9
## %bb.8:
	testl	%r15d, %r15d
	setne	%al
	movq	_FRF_BB_TXFIFO_DRAIN_EN@GOTPCREL(%rip), %rcx
	cmpl	$0, 12(%rbx)
	movl	(%rcx), %esi
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edx
	callq	_EF4_SET_OWORD_FIELD
LBB0_9:
	movq	_FR_AB_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ef4_writeo
	movq	%rbx, %rdi
	callq	_falcon_push_multicast_hash
	movq	_FR_AZ_RX_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ef4_reado
	movl	-48(%rbp), %edi
	movq	_FRF_AZ_RX_XOFF_MAC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_EF4_SET_OWORD_FIELD
	movq	%rbx, %rdi
	callq	_ef4_nic_rev
	cmpq	(%r13), %rax
	jl	LBB0_11
## %bb.10:
	movl	-48(%rbp), %edi
	movq	_FRF_BZ_RX_INGR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r14b
	movl	%r14d, %edx
	callq	_EF4_SET_OWORD_FIELD
LBB0_11:
	movl	(%r12), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ef4_writeo
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRF_AB_MAC_XOFF_VAL,4,2        ## @FRF_AB_MAC_XOFF_VAL
	.comm	_FRF_AB_MAC_BCAD_ACPT,4,2       ## @FRF_AB_MAC_BCAD_ACPT
	.comm	_FRF_AB_MAC_UC_PROM,4,2         ## @FRF_AB_MAC_UC_PROM
	.comm	_FRF_AB_MAC_LINK_STATUS,4,2     ## @FRF_AB_MAC_LINK_STATUS
	.comm	_FRF_AB_MAC_SPEED,4,2           ## @FRF_AB_MAC_SPEED
	.comm	_EF4_REV_FALCON_B0,8,3          ## @EF4_REV_FALCON_B0
	.comm	_FRF_BB_TXFIFO_DRAIN_EN,4,2     ## @FRF_BB_TXFIFO_DRAIN_EN
	.comm	_FR_AB_MAC_CTRL,4,2             ## @FR_AB_MAC_CTRL
	.comm	_FR_AZ_RX_CFG,4,2               ## @FR_AZ_RX_CFG
	.comm	_FRF_AZ_RX_XOFF_MAC_EN,4,2      ## @FRF_AZ_RX_XOFF_MAC_EN
	.comm	_FRF_BZ_RX_INGR_EN,4,2          ## @FRF_BZ_RX_INGR_EN
	.no_dead_strip	_falcon_reconfigure_mac_wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_reconfigure_mac_wrapper
_falcon_reconfigure_mac_wrapper:        ; @falcon_reconfigure_mac_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_READ_ONCE
	mov	x21, x0
	cmp	w0, #0
	cset	w20, eq
	ldr	w8, [x19, #8]
	cmp	w8, #100
	b.eq	LBB0_4
; %bb.1:
	mov	w9, #10000
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #1000
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #2
	b	LBB0_7
LBB0_4:
	mov	w8, #1
	b	LBB0_7
LBB0_5:
	mov	w8, #3
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
Lloh0:
	adrp	x9, _FRF_AB_MAC_XOFF_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FRF_AB_MAC_XOFF_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _FRF_AB_MAC_BCAD_ACPT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FRF_AB_MAC_BCAD_ACPT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
Lloh6:
	adrp	x9, _FRF_AB_MAC_UC_PROM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FRF_AB_MAC_UC_PROM@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x9]
	ldr	w9, [x19]
	cmp	w9, #0
	cset	w6, eq
Lloh9:
	adrp	x9, _FRF_AB_MAC_LINK_STATUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FRF_AB_MAC_LINK_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x9]
Lloh12:
	adrp	x9, _FRF_AB_MAC_SPEED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FRF_AB_MAC_SPEED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #4]
	mov	w8, #1
	str	w8, [sp]
	mov	w2, #65535
	mov	w4, #1
	bl	_EF4_POPULATE_OWORD_5
	mov	x0, x19
	bl	_ef4_nic_rev
Lloh15:
	adrp	x22, _EF4_REV_FALCON_B0@GOTPAGE
Lloh16:
	ldr	x22, [x22, _EF4_REV_FALCON_B0@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _FRF_BB_TXFIFO_DRAIN_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FRF_BB_TXFIFO_DRAIN_EN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x19, #12]
	cmp	w8, #0
	ccmp	w21, #0, #0, ne
	cset	w2, ne
	bl	_EF4_SET_OWORD_FIELD
LBB0_9:
Lloh20:
	adrp	x8, _FR_AB_MAC_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FR_AB_MAC_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
	mov	x0, x19
	bl	_falcon_push_multicast_hash
Lloh23:
	adrp	x21, _FR_AZ_RX_CFG@GOTPAGE
Lloh24:
	ldr	x21, [x21, _FR_AZ_RX_CFG@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh25:
	adrp	x8, _FRF_AZ_RX_XOFF_MAC_EN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FRF_AZ_RX_XOFF_MAC_EN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_EF4_SET_OWORD_FIELD
	mov	x0, x19
	bl	_ef4_nic_rev
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_11
; %bb.10:
	ldr	w0, [sp, #12]
Lloh28:
	adrp	x8, _FRF_BZ_RX_INGR_EN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FRF_BZ_RX_INGR_EN@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_EF4_SET_OWORD_FIELD
LBB0_11:
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FRF_AB_MAC_XOFF_VAL,4,2        ; @FRF_AB_MAC_XOFF_VAL
	.comm	_FRF_AB_MAC_BCAD_ACPT,4,2       ; @FRF_AB_MAC_BCAD_ACPT
	.comm	_FRF_AB_MAC_UC_PROM,4,2         ; @FRF_AB_MAC_UC_PROM
	.comm	_FRF_AB_MAC_LINK_STATUS,4,2     ; @FRF_AB_MAC_LINK_STATUS
	.comm	_FRF_AB_MAC_SPEED,4,2           ; @FRF_AB_MAC_SPEED
	.comm	_EF4_REV_FALCON_B0,8,3          ; @EF4_REV_FALCON_B0
	.comm	_FRF_BB_TXFIFO_DRAIN_EN,4,2     ; @FRF_BB_TXFIFO_DRAIN_EN
	.comm	_FR_AB_MAC_CTRL,4,2             ; @FR_AB_MAC_CTRL
	.comm	_FR_AZ_RX_CFG,4,2               ; @FR_AZ_RX_CFG
	.comm	_FRF_AZ_RX_XOFF_MAC_EN,4,2      ; @FRF_AZ_RX_XOFF_MAC_EN
	.comm	_FRF_BZ_RX_INGR_EN,4,2          ; @FRF_BZ_RX_INGR_EN
	.no_dead_strip	_falcon_reconfigure_mac_wrapper
.subsections_via_symbols
