	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_set_sens
_ipw_wx_set_sens:                       ## @ipw_wx_set_sens
	.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	%rdx, %rbx
	callq	_libipw_priv
	movq	%rax, %r14
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_WX
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movq	_IPW_MB_ROAMING_THRESHOLD_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_4
## %bb.3:
	movq	_IPW_MB_ROAMING_THRESHOLD_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_4
## %bb.5:
	movl	%eax, (%r14)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	jmp	LBB0_6
LBB0_1:
	movq	_IPW_MB_ROAMING_THRESHOLD_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting roaming threshold to %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Setting disassociate threshold to %d\n"

	.comm	_IPW_MB_ROAMING_THRESHOLD_DEFAULT,4,2 ## @IPW_MB_ROAMING_THRESHOLD_DEFAULT
	.comm	_IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT,4,2 ## @IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT
	.comm	_IPW_MB_ROAMING_THRESHOLD_MAX,4,2 ## @IPW_MB_ROAMING_THRESHOLD_MAX
	.comm	_IPW_MB_ROAMING_THRESHOLD_MIN,4,2 ## @IPW_MB_ROAMING_THRESHOLD_MIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ipw_wx_set_sens
.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_sens
_ipw_wx_set_sens:                       ; @ipw_wx_set_sens
	.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	x21, x2
	bl	_libipw_priv
	mov	x20, x0
	ldr	w1, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	ldr	w8, [x21]
	add	w1, w8, w8, lsl #1
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_WX
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _IPW_MB_ROAMING_THRESHOLD_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IPW_MB_ROAMING_THRESHOLD_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _IPW_MB_ROAMING_THRESHOLD_MIN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IPW_MB_ROAMING_THRESHOLD_MIN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #8, le
	b.ge	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_3:
	mov	w22, #0
Lloh13:
	adrp	x8, _IPW_MB_ROAMING_THRESHOLD_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPW_MB_ROAMING_THRESHOLD_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh16:
	adrp	x8, _IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_4:
	mov	w22, #0
	str	w8, [x20]
	ldr	w8, [x21]
	add	w8, w8, w8, lsl #1
LBB0_5:
	str	w8, [x20, #4]
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting roaming threshold to %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Setting disassociate threshold to %d\n"

	.comm	_IPW_MB_ROAMING_THRESHOLD_DEFAULT,4,2 ; @IPW_MB_ROAMING_THRESHOLD_DEFAULT
	.comm	_IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT,4,2 ; @IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT
	.comm	_IPW_MB_ROAMING_THRESHOLD_MAX,4,2 ; @IPW_MB_ROAMING_THRESHOLD_MAX
	.comm	_IPW_MB_ROAMING_THRESHOLD_MIN,4,2 ; @IPW_MB_ROAMING_THRESHOLD_MIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ipw_wx_set_sens
.subsections_via_symbols
