	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_giwretry
_prism2_ioctl_giwretry:                 ## @prism2_ioctl_giwretry
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %r15
	movq	8(%r15), %rax
	movq	_HFA384X_RID_SHORTRETRYLIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	_HFA384X_RID_LONGRETRYLIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	8(%r15), %rax
	movq	_HFA384X_RID_MAXTRANSMITLIFETIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	$0, 8(%r14)
	movl	(%r14), %eax
	movq	_IW_RETRY_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_IW_RETRY_LIFETIME@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.5:
	movl	%ecx, (%r14)
	movq	-56(%rbp), %rdi
	callq	_le16_to_cpu
	shll	$10, %eax
	jmp	LBB0_11
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_6:
	cmpl	$0, (%r15)
	js	LBB0_12
## %bb.7:
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	8(%r15), %rax
	movq	_HFA384X_RID_CNFALTRETRYCOUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rdi
	callq	_le16_to_cpu
	jmp	LBB0_11
LBB0_12:
	movq	_IW_RETRY_LONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %ecx
	je	LBB0_14
## %bb.13:
	orl	%ecx, %edx
	movl	%edx, (%r14)
	movq	-32(%rbp), %rdi
	callq	_le16_to_cpu
	jmp	LBB0_11
LBB0_10:
	movl	(%r15), %eax
LBB0_11:
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%edx, (%r14)
	movq	-40(%rbp), %rdi
	callq	_le16_to_cpu
	movl	%eax, 4(%r14)
	movq	-40(%rbp), %rcx
	xorl	%eax, %eax
	cmpq	-32(%rbp), %rcx
	je	LBB0_16
## %bb.15:
	movq	_IW_RETRY_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_HFA384X_RID_SHORTRETRYLIMIT,4,2 ## @HFA384X_RID_SHORTRETRYLIMIT
	.comm	_HFA384X_RID_LONGRETRYLIMIT,4,2 ## @HFA384X_RID_LONGRETRYLIMIT
	.comm	_HFA384X_RID_MAXTRANSMITLIFETIME,4,2 ## @HFA384X_RID_MAXTRANSMITLIFETIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_RETRY_TYPE,4,2              ## @IW_RETRY_TYPE
	.comm	_IW_RETRY_LIFETIME,4,2          ## @IW_RETRY_LIFETIME
	.comm	_IW_RETRY_LIMIT,4,2             ## @IW_RETRY_LIMIT
	.comm	_HFA384X_RID_CNFALTRETRYCOUNT,4,2 ## @HFA384X_RID_CNFALTRETRYCOUNT
	.comm	_IW_RETRY_LONG,4,2              ## @IW_RETRY_LONG
	.comm	_IW_RETRY_SHORT,4,2             ## @IW_RETRY_SHORT
	.no_dead_strip	_prism2_ioctl_giwretry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_giwretry
_prism2_ioctl_giwretry:                 ; @prism2_ioctl_giwretry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HFA384X_RID_SHORTRETRYLIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFA384X_RID_SHORTRETRYLIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HFA384X_RID_LONGRETRYLIMIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HFA384X_RID_LONGRETRYLIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HFA384X_RID_MAXTRANSMITLIFETIME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HFA384X_RID_MAXTRANSMITLIFETIME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_5
; %bb.3:
	str	xzr, [x19, #8]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _IW_RETRY_TYPE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_RETRY_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh12:
	adrp	x10, _IW_RETRY_LIFETIME@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IW_RETRY_LIFETIME@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.4:
	str	w9, [x19]
	ldr	x0, [sp, #8]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	lsl	w8, w8, #10
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w9, [x21]
	tbnz	w9, #31, LBB0_10
; %bb.8:
Lloh18:
	adrp	x8, _IW_RETRY_LIMIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IW_RETRY_LIMIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _HFA384X_RID_CNFALTRETRYCOUNT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HFA384X_RID_CNFALTRETRYCOUNT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_13
; %bb.9:
	ldr	x0, [sp]
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x9, _IW_RETRY_LONG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IW_RETRY_LONG@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _IW_RETRY_LIMIT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IW_RETRY_LIMIT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.11:
	orr	w8, w10, w9
	str	w8, [x19]
	ldr	x0, [sp, #16]
LBB0_12:
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_13:
	mov	w0, #0
	ldr	w8, [x21]
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_14:
	str	w10, [x19]
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
	str	w0, [x19, #4]
	ldp	x9, x8, [sp, #16]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	b	LBB0_6
LBB0_16:
	mov	w0, #0
Lloh30:
	adrp	x8, _IW_RETRY_SHORT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IW_RETRY_SHORT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HFA384X_RID_SHORTRETRYLIMIT,4,2 ; @HFA384X_RID_SHORTRETRYLIMIT
	.comm	_HFA384X_RID_LONGRETRYLIMIT,4,2 ; @HFA384X_RID_LONGRETRYLIMIT
	.comm	_HFA384X_RID_MAXTRANSMITLIFETIME,4,2 ; @HFA384X_RID_MAXTRANSMITLIFETIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_RETRY_TYPE,4,2              ; @IW_RETRY_TYPE
	.comm	_IW_RETRY_LIFETIME,4,2          ; @IW_RETRY_LIFETIME
	.comm	_IW_RETRY_LIMIT,4,2             ; @IW_RETRY_LIMIT
	.comm	_HFA384X_RID_CNFALTRETRYCOUNT,4,2 ; @HFA384X_RID_CNFALTRETRYCOUNT
	.comm	_IW_RETRY_LONG,4,2              ; @IW_RETRY_LONG
	.comm	_IW_RETRY_SHORT,4,2             ; @IW_RETRY_SHORT
	.no_dead_strip	_prism2_ioctl_giwretry
.subsections_via_symbols
