	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_set_retry
_ipw_wx_set_retry:                      ## @ipw_wx_set_retry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_libipw_priv
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_IW_RETRY_LIFETIME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.4:
	cmpl	$255, 4(%r15)
	jae	LBB0_2
## %bb.5:
	movq	%r14, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	movq	_IW_RETRY_SHORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movslq	4(%r15), %rsi
	movq	%rsi, 8(%r14)
	movq	(%r14), %rdx
	jmp	LBB0_10
LBB0_7:
	movq	_IW_RETRY_LONG@GOTPCREL(%rip), %rcx
	movslq	4(%r15), %rdx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	%rdx, (%r14)
	movq	8(%r14), %rsi
	jmp	LBB0_10
LBB0_9:
	movq	%rdx, %rsi
	movq	%rdx, 8(%r14)
	movslq	4(%r15), %rdx
	movq	%rdx, (%r14)
LBB0_10:
	movq	%r14, %rdi
	callq	_ipw_send_retry_limit
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rdx
	movq	8(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_RETRY_LIFETIME,4,2          ## @IW_RETRY_LIFETIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_RETRY_LIMIT,4,2             ## @IW_RETRY_LIMIT
	.comm	_IW_RETRY_SHORT,4,2             ## @IW_RETRY_SHORT
	.comm	_IW_RETRY_LONG,4,2              ## @IW_RETRY_LONG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET retry limit -> short:%d long:%d\n"

	.no_dead_strip	_ipw_wx_set_retry
.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_retry
_ipw_wx_set_retry:                      ; @ipw_wx_set_retry
	.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
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IW_RETRY_LIFETIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_RETRY_LIFETIME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
Lloh6:
	adrp	x9, _IW_RETRY_LIMIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IW_RETRY_LIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.5:
	ldr	w8, [x21, #4]
	cmp	w8, #255
	b.hs	LBB0_2
; %bb.6:
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _IW_RETRY_SHORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_RETRY_SHORT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldrsw	x1, [x21, #4]
	str	x1, [x19, #8]
	ldr	x2, [x19]
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x9, _IW_RETRY_LONG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IW_RETRY_LONG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldrsw	x2, [x21, #4]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	str	x2, [x19]
	ldr	x1, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	x1, x2
	str	x2, [x19, #8]
	ldrsw	x2, [x21, #4]
	str	x2, [x19]
LBB0_11:
	mov	x0, x19
	bl	_ipw_send_retry_limit
	mov	x0, x20
	bl	_mutex_unlock
	ldp	x2, x1, [x19]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
LBB0_12:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_RETRY_LIFETIME,4,2          ; @IW_RETRY_LIFETIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_RETRY_LIMIT,4,2             ; @IW_RETRY_LIMIT
	.comm	_IW_RETRY_SHORT,4,2             ; @IW_RETRY_SHORT
	.comm	_IW_RETRY_LONG,4,2              ; @IW_RETRY_LONG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET retry limit -> short:%d long:%d\n"

	.no_dead_strip	_ipw_wx_set_retry
.subsections_via_symbols
