	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_set_frag
_zd1201_set_frag:                       ## @zd1201_set_frag
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_1
LBB0_2:
	movq	_ZD1201_FRAGMAX@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	cmpl	$0, 4(%rbx)
	je	LBB0_2
LBB0_3:
	movzwl	(%rbx), %eax
	movq	_ZD1201_FRAGMAX@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jg	LBB0_4
## %bb.5:
	movq	_ZD1201_FRAGMIN@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jl	LBB0_4
## %bb.6:
	testb	$1, %al
	jne	LBB0_4
## %bb.7:
	movq	_ZD1201_RID_CNFFRAGTHRESHOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movswl	%ax, %edx
	movq	%r14, %rdi
	callq	_zd1201_setconfig16
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_zd1201_mac_reset               ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD1201_FRAGMAX,2,1             ## @ZD1201_FRAGMAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ZD1201_FRAGMIN,2,1             ## @ZD1201_FRAGMIN
	.comm	_ZD1201_RID_CNFFRAGTHRESHOLD,4,2 ## @ZD1201_RID_CNFFRAGTHRESHOLD
	.no_dead_strip	_zd1201_set_frag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_set_frag
_zd1201_set_frag:                       ; @zd1201_set_frag
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x20, _ZD1201_FRAGMAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ZD1201_FRAGMAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_1
LBB0_3:
	ldrsh	w2, [x20]
Lloh2:
	adrp	x8, _ZD1201_FRAGMAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZD1201_FRAGMAX@GOTPAGEOFF]
Lloh4:
	ldrsh	w8, [x8]
	cmp	w2, w8
	b.gt	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _ZD1201_FRAGMIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZD1201_FRAGMIN@GOTPAGEOFF]
Lloh7:
	ldrsh	w8, [x8]
	cmp	w2, w8
	b.lt	LBB0_8
; %bb.5:
	tbnz	w2, #0, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _ZD1201_RID_CNFFRAGTHRESHOLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZD1201_RID_CNFFRAGTHRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zd1201_setconfig16
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_zd1201_mac_reset
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD1201_FRAGMAX,2,1             ; @ZD1201_FRAGMAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ZD1201_FRAGMIN,2,1             ; @ZD1201_FRAGMIN
	.comm	_ZD1201_RID_CNFFRAGTHRESHOLD,4,2 ; @ZD1201_RID_CNFFRAGTHRESHOLD
	.no_dead_strip	_zd1201_set_frag
.subsections_via_symbols
