	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_set_retry
_ipw2100_wx_set_retry:                  ## @ipw2100_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, %r12
	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_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	%r12, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_STATUS_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.7:
	movl	(%r15), %eax
	movq	_IW_RETRY_SHORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_ipw2100_set_short_retry
	movl	%eax, %ebx
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_9:
	movq	_IW_RETRY_LONG@GOTPCREL(%rip), %rcx
	movl	4(%r15), %esi
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_ipw2100_set_long_retry
	movl	%eax, %ebx
	movl	4(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_11:
	movq	%r12, %rdi
	callq	_ipw2100_set_short_retry
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_ipw2100_set_long_retry
	movl	%eax, %ebx
LBB0_13:
	movl	4(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_14:
	callq	_IPW_DEBUG_WX
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_16
	.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	_STATUS_INITIALIZED,4,2         ## @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IW_RETRY_SHORT,4,2             ## @IW_RETRY_SHORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET Short Retry Limit -> %d\n"

	.comm	_IW_RETRY_LONG,4,2              ## @IW_RETRY_LONG
L_.str.1:                               ## @.str.1
	.asciz	"SET Long Retry Limit -> %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"SET Both Retry Limits -> %d\n"

	.no_dead_strip	_ipw2100_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 ipw2100_wx_set_retry
_ipw2100_wx_set_retry:                  ; @ipw2100_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	x20, x2
	bl	_libipw_priv
	ldr	w8, [x20]
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, [x20, #8]
	cbz	x9, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	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
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_8
; %bb.5:
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _STATUS_INITIALIZED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STATUS_INITIALIZED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _IW_RETRY_SHORT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IW_RETRY_SHORT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_ipw2100_set_short_retry
	mov	x22, x0
	ldr	w1, [x20, #4]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_8:
	mov	w22, #0
	b	LBB0_3
LBB0_9:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_10:
Lloh20:
	adrp	x9, _IW_RETRY_LONG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IW_RETRY_LONG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w1, [x20, #4]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_ipw2100_set_long_retry
	mov	x22, x0
	ldr	w1, [x20, #4]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	bl	_ipw2100_set_short_retry
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_ipw2100_set_long_retry
	mov	x22, x0
LBB0_14:
	ldr	w1, [x20, #4]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_15:
	bl	_IPW_DEBUG_WX
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.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	_STATUS_INITIALIZED,4,2         ; @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IW_RETRY_SHORT,4,2             ; @IW_RETRY_SHORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET Short Retry Limit -> %d\n"

	.comm	_IW_RETRY_LONG,4,2              ; @IW_RETRY_LONG
l_.str.1:                               ; @.str.1
	.asciz	"SET Long Retry Limit -> %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"SET Both Retry Limits -> %d\n"

	.no_dead_strip	_ipw2100_wx_set_retry
.subsections_via_symbols
