	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_set_retry
_prism54_set_retry:                     ## @prism54_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_netdev_priv
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_2:
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_IW_RETRY_LIMIT@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movl	$0, %r12d
	movl	$0, %ecx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.3:
	movq	_IW_RETRY_SHORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %ecx
	movl	%ecx, -40(%rbp)
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_5:
	movq	_IW_RETRY_LONG@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %r12d
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	%r12d, -36(%rbp)
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_7:
	movl	%r12d, -40(%rbp)
	movl	%r12d, -36(%rbp)
	movl	%r12d, %ecx
LBB0_8:
	movq	_IW_RETRY_LIFETIME@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %eax
	leal	1023(%rax), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$10, %r15d
	movl	%r15d, -44(%rbp)
LBB0_10:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.12:
	movq	_DOT11_OID_SHORTRETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_15
LBB0_14:
	movq	_DOT11_OID_LONGRETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	orl	%eax, %ebx
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.16:
	movq	_DOT11_OID_MAXTXLIFETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	orl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_IW_RETRY_LIFETIME,4,2          ## @IW_RETRY_LIFETIME
	.comm	_DOT11_OID_SHORTRETRIES,4,2     ## @DOT11_OID_SHORTRETRIES
	.comm	_DOT11_OID_LONGRETRIES,4,2      ## @DOT11_OID_LONGRETRIES
	.comm	_DOT11_OID_MAXTXLIFETIME,4,2    ## @DOT11_OID_MAXTXLIFETIME
	.no_dead_strip	_prism54_set_retry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_set_retry
_prism54_set_retry:                     ; @prism54_set_retry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_netdev_priv
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_2:
	mov	x19, x0
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _IW_RETRY_LIMIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_RETRY_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _IW_RETRY_SHORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IW_RETRY_SHORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	w21, #0
	ldr	w9, [x20, #4]
	str	w9, [sp, #12]
	b	LBB0_9
LBB0_5:
	mov	w21, #0
	mov	w9, #0
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x9, _IW_RETRY_LONG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_RETRY_LONG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w21, [x20, #4]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w9, #0
	str	w21, [sp, #8]
	b	LBB0_9
LBB0_8:
	stp	w21, w21, [sp, #8]
	mov	x9, x21
LBB0_9:
Lloh12:
	adrp	x10, _IW_RETRY_LIFETIME@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IW_RETRY_LIFETIME@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_16
; %bb.10:
	ldr	w8, [x20, #4]
	add	w10, w8, #1023
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w22, w8, #10
	str	w22, [sp, #4]
	cbz	w9, LBB0_17
LBB0_11:
Lloh15:
	adrp	x8, _DOT11_OID_SHORTRETRIES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOT11_OID_SHORTRETRIES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
	mov	x20, x0
	cbz	w21, LBB0_13
LBB0_12:
Lloh18:
	adrp	x8, _DOT11_OID_LONGRETRIES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DOT11_OID_LONGRETRIES@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
	orr	w20, w0, w20
LBB0_13:
	cbz	w22, LBB0_15
; %bb.14:
Lloh21:
	adrp	x8, _DOT11_OID_MAXTXLIFETIME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DOT11_OID_MAXTXLIFETIME@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x3, sp, #4
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
	orr	w20, w0, w20
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	mov	w22, #0
	cbnz	w9, LBB0_11
LBB0_17:
	mov	w20, #0
	cbnz	w21, LBB0_12
	b	LBB0_13
	.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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_IW_RETRY_LIFETIME,4,2          ; @IW_RETRY_LIFETIME
	.comm	_DOT11_OID_SHORTRETRIES,4,2     ; @DOT11_OID_SHORTRETRIES
	.comm	_DOT11_OID_LONGRETRIES,4,2      ; @DOT11_OID_LONGRETRIES
	.comm	_DOT11_OID_MAXTXLIFETIME,4,2    ; @DOT11_OID_MAXTXLIFETIME
	.no_dead_strip	_prism54_set_retry
.subsections_via_symbols
