	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_get_retry
_ipw2100_wx_get_retry:                  ## @ipw2100_wx_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_libipw_priv
	movq	$0, 16(%rbx)
	movl	(%rbx), %ecx
	movq	_IW_RETRY_TYPE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	movq	_IW_RETRY_LIFETIME@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_IW_RETRY_LONG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	8(%rax), %rsi
	xorl	%ecx, %ecx
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rdx
	cmpq	(%rax), %rsi
	je	LBB0_6
## %bb.5:
	movq	_IW_RETRY_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	addq	$8, %rax
	orl	(%rdx), %ecx
	movl	%ecx, (%rbx)
LBB0_7:
	movq	(%rax), %rsi
	movq	%rsi, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_RETRY_TYPE,4,2              ## @IW_RETRY_TYPE
	.comm	_IW_RETRY_LIFETIME,4,2          ## @IW_RETRY_LIFETIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_RETRY_LONG,4,2              ## @IW_RETRY_LONG
	.comm	_IW_RETRY_LIMIT,4,2             ## @IW_RETRY_LIMIT
	.comm	_IW_RETRY_SHORT,4,2             ## @IW_RETRY_SHORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET Retry -> %d\n"

	.no_dead_strip	_ipw2100_wx_get_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_get_retry
_ipw2100_wx_get_retry:                  ; @ipw2100_wx_get_retry
	.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
	str	xzr, [x19, #16]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IW_RETRY_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_RETRY_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _IW_RETRY_LIFETIME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IW_RETRY_LIFETIME@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
Lloh9:
	adrp	x9, _IW_RETRY_LONG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_RETRY_LONG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _IW_RETRY_LIMIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IW_RETRY_LIMIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	x8, x0
	ldr	x9, [x8, #8]!
	ldr	x10, [x0]
Lloh15:
	adrp	x11, _IW_RETRY_LIMIT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IW_RETRY_LIMIT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
Lloh18:
	adrp	x12, _IW_RETRY_SHORT@GOTPAGE
Lloh19:
	ldr	x12, [x12, _IW_RETRY_SHORT@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	cmp	x9, x10
	csel	w9, wzr, w12, eq
	orr	w9, w9, w11
	str	w9, [x19]
	mov	x0, x8
LBB0_5:
	ldr	x1, [x0]
	str	x1, [x19, #8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w0, #0
LBB0_6:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_RETRY_TYPE,4,2              ; @IW_RETRY_TYPE
	.comm	_IW_RETRY_LIFETIME,4,2          ; @IW_RETRY_LIFETIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_RETRY_LONG,4,2              ; @IW_RETRY_LONG
	.comm	_IW_RETRY_LIMIT,4,2             ; @IW_RETRY_LIMIT
	.comm	_IW_RETRY_SHORT,4,2             ; @IW_RETRY_SHORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET Retry -> %d\n"

	.no_dead_strip	_ipw2100_wx_get_retry
.subsections_via_symbols
