	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88178_set_mfb
_ax88178_set_mfb:                       ## @ax88178_set_mfb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %edx
	cmpl	$2048, %edx                     ## imm = 0x800
	jge	LBB0_2
## %bb.1:
	movq	_AX_RX_CTL_MFB_2048@GOTPCREL(%rip), %rax
	movl	$2048, %ecx                     ## imm = 0x800
	jmp	LBB0_7
LBB0_2:
	cmpl	$4096, %edx                     ## imm = 0x1000
	jae	LBB0_4
## %bb.3:
	movq	_AX_RX_CTL_MFB_4096@GOTPCREL(%rip), %rax
	movl	$4096, %ecx                     ## imm = 0x1000
	jmp	LBB0_7
LBB0_4:
	cmpl	$8192, %edx                     ## imm = 0x2000
	jae	LBB0_6
## %bb.5:
	movq	_AX_RX_CTL_MFB_8192@GOTPCREL(%rip), %rax
	movl	$8192, %ecx                     ## imm = 0x2000
	jmp	LBB0_7
LBB0_6:
	movq	_AX_RX_CTL_MFB_16384@GOTPCREL(%rip), %rax
	movl	$16384, %ecx                    ## imm = 0x4000
	cmpl	$16383, %edx                    ## imm = 0x3FFF
	ja	LBB0_8
LBB0_7:
	movl	%ecx, (%rbx)
LBB0_8:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_asix_read_rx_ctl
	movq	_AX_RX_CTL_MFB_16384@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	orl	%r15d, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_rx_ctl
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_asix_read_medium_status
	movq	8(%rbx), %rcx
	movq	_AX_MEDIUM_JFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	orl	%eax, %edx
	notl	%esi
	andl	%eax, %esi
	cmpl	$1501, (%rcx)                   ## imm = 0x5DD
	cmovgel	%edx, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_medium_mode
	cmpl	%r14d, (%rbx)
	jle	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usbnet_unlink_rx_urbs          ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_RX_CTL_MFB_16384,4,2        ## @AX_RX_CTL_MFB_16384
	.comm	_AX_RX_CTL_MFB_2048,4,2         ## @AX_RX_CTL_MFB_2048
	.comm	_AX_RX_CTL_MFB_4096,4,2         ## @AX_RX_CTL_MFB_4096
	.comm	_AX_RX_CTL_MFB_8192,4,2         ## @AX_RX_CTL_MFB_8192
	.comm	_AX_MEDIUM_JFE,4,2              ## @AX_MEDIUM_JFE
	.no_dead_strip	_ax88178_set_mfb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88178_set_mfb
_ax88178_set_mfb:                       ; @ax88178_set_mfb
	.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	x21, _AX_RX_CTL_MFB_16384@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AX_RX_CTL_MFB_16384@GOTPAGEOFF]
	ldp	w20, w8, [x0]
	cmp	w8, #2048
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AX_RX_CTL_MFB_2048@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AX_RX_CTL_MFB_2048@GOTPAGEOFF]
	mov	w9, #2048
	b	LBB0_8
LBB0_2:
	cmp	w8, #1, lsl #12                 ; =4096
	b.hs	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _AX_RX_CTL_MFB_4096@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AX_RX_CTL_MFB_4096@GOTPAGEOFF]
	mov	w9, #4096
	b	LBB0_8
LBB0_4:
	cmp	w8, #2, lsl #12                 ; =8192
	b.hs	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _AX_RX_CTL_MFB_8192@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AX_RX_CTL_MFB_8192@GOTPAGEOFF]
	mov	w9, #8192
	b	LBB0_8
LBB0_6:
	lsr	w8, w8, #14
	cbnz	w8, LBB0_12
; %bb.7:
Lloh8:
	adrp	x8, _AX_RX_CTL_MFB_16384@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AX_RX_CTL_MFB_16384@GOTPAGEOFF]
	mov	w9, #16384
LBB0_8:
	str	w9, [x19]
	ldr	w22, [x8]
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_asix_read_rx_ctl
	ldr	w8, [x21]
	bic	w8, w0, w8
	orr	w1, w8, w22
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_rx_ctl
	mov	x0, x19
	mov	w1, #0
	bl	_asix_read_medium_status
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _AX_MEDIUM_JFE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AX_MEDIUM_JFE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w10, w9, w0
	bic	w9, w0, w9
	cmp	w8, #1500
	csel	w1, w10, w9, gt
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_medium_mode
	ldr	w8, [x19]
	cmp	w8, w20
	b.le	LBB0_11
; %bb.10:
	mov	x0, x19
	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
	b	_usbnet_unlink_rx_urbs
LBB0_11:
	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
LBB0_12:
	ldr	w22, [x21]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_RX_CTL_MFB_16384,4,2        ; @AX_RX_CTL_MFB_16384
	.comm	_AX_RX_CTL_MFB_2048,4,2         ; @AX_RX_CTL_MFB_2048
	.comm	_AX_RX_CTL_MFB_4096,4,2         ; @AX_RX_CTL_MFB_4096
	.comm	_AX_RX_CTL_MFB_8192,4,2         ; @AX_RX_CTL_MFB_8192
	.comm	_AX_MEDIUM_JFE,4,2              ; @AX_MEDIUM_JFE
	.no_dead_strip	_ax88178_set_mfb
.subsections_via_symbols
