	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_set_frag
_ipw_wx_set_frag:                       ## @ipw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_libipw_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r14)
	je	LBB0_1
LBB0_2:
	movq	_DEFAULT_FTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ipw_send_frag_threshold
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 4(%r14)
	je	LBB0_2
## %bb.3:
	movl	(%r14), %eax
	movq	_MIN_FRAG_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_5
## %bb.4:
	movq	_MAX_FRAG_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
## %bb.6:
	andl	$-2, %eax
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET Frag Threshold -> %d\n"

	.no_dead_strip	_ipw_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 ipw_wx_set_frag
_ipw_wx_set_frag:                       ; @ipw_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
	mov	x20, x0
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _DEFAULT_FTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_FTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
LBB0_2:
	ldr	x9, [x20, #8]
	str	w8, [x9]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_ipw_send_frag_threshold
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_1
; %bb.5:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _MIN_FRAG_THRESHOLD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MIN_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MAX_FRAG_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_mutex_unlock
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_7:
	and	w8, w8, #0xfffffffe
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET Frag Threshold -> %d\n"

	.no_dead_strip	_ipw_wx_set_frag
.subsections_via_symbols
