	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_set_frag
_ipw2100_wx_set_frag:                   ## @ipw2100_wx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_libipw_priv
	cmpl	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_FRAG_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	_DEFAULT_FTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%rax), %rax
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %esi
	movq	_MIN_FRAG_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jl	LBB0_1
## %bb.5:
	movq	_MAX_FRAG_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jg	LBB0_1
## %bb.6:
	andl	$-2, %esi
	movq	8(%rax), %rcx
	movl	%esi, (%rcx)
LBB0_7:
	movl	%esi, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FRAG_DISABLED,4,2              ## @FRAG_DISABLED
	.comm	_DEFAULT_FTS,4,2                ## @DEFAULT_FTS
	.comm	_MIN_FRAG_THRESHOLD,4,2         ## @MIN_FRAG_THRESHOLD
	.comm	_MAX_FRAG_THRESHOLD,4,2         ## @MAX_FRAG_THRESHOLD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET Frag Threshold -> %d\n"

	.no_dead_strip	_ipw2100_wx_set_frag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_wx_set_frag
_ipw2100_wx_set_frag:                   ; @ipw2100_wx_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	x19, x2
	bl	_libipw_priv
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _FRAG_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRAG_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh3:
	adrp	x8, _DEFAULT_FTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_FTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x0, #8]
	str	w1, [x8]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _MIN_FRAG_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIN_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MAX_FRAG_THRESHOLD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	and	w1, w8, #0xfffffffe
	ldr	x8, [x0, #8]
	str	w1, [x8]
	str	w1, [x0]
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FRAG_DISABLED,4,2              ; @FRAG_DISABLED
	.comm	_DEFAULT_FTS,4,2                ; @DEFAULT_FTS
	.comm	_MIN_FRAG_THRESHOLD,4,2         ; @MIN_FRAG_THRESHOLD
	.comm	_MAX_FRAG_THRESHOLD,4,2         ; @MAX_FRAG_THRESHOLD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET Frag Threshold -> %d\n"

	.no_dead_strip	_ipw2100_wx_set_frag
.subsections_via_symbols
