	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_wiphy_params
_ieee80211_set_wiphy_params:            ## @ieee80211_set_wiphy_params
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_wiphy_priv
	movq	%rax, %r14
	movq	_WIPHY_PARAM_FRAG_THRESHOLD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	24(%r12), %esi
	movq	%r14, %rdi
	callq	_drv_set_frag_threshold
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
LBB0_2:
	movq	_WIPHY_PARAM_COVERAGE_CLASS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	20(%r12), %esi
	movq	%r14, %rdi
	callq	_drv_set_coverage_class
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
LBB0_4:
	movq	_WIPHY_PARAM_RTS_THRESHOLD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	_drv_set_rts_threshold
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
LBB0_6:
	movq	_WIPHY_PARAM_RETRY_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_10
## %bb.7:
	movq	(%r12), %rcx
	movq	_IEEE80211_MAX_TX_RETRY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_8
## %bb.9:
	movq	%rcx, (%r14)
LBB0_10:
	movq	_WIPHY_PARAM_RETRY_LONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r15d, %ecx
	je	LBB0_13
## %bb.11:
	movq	8(%r12), %rdx
	movq	_IEEE80211_MAX_TX_RETRY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_12:
	movq	%rdx, 8(%r14)
LBB0_13:
	orl	%eax, %ecx
	xorl	%ebx, %ebx
	testl	%r15d, %ecx
	je	LBB0_15
## %bb.14:
	movq	_IEEE80211_CONF_CHANGE_RETRY_LIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_config
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIPHY_PARAM_FRAG_THRESHOLD,4,2 ## @WIPHY_PARAM_FRAG_THRESHOLD
	.comm	_WIPHY_PARAM_COVERAGE_CLASS,4,2 ## @WIPHY_PARAM_COVERAGE_CLASS
	.comm	_WIPHY_PARAM_RTS_THRESHOLD,4,2  ## @WIPHY_PARAM_RTS_THRESHOLD
	.comm	_WIPHY_PARAM_RETRY_SHORT,4,2    ## @WIPHY_PARAM_RETRY_SHORT
	.comm	_IEEE80211_MAX_TX_RETRY,8,3     ## @IEEE80211_MAX_TX_RETRY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WIPHY_PARAM_RETRY_LONG,4,2     ## @WIPHY_PARAM_RETRY_LONG
	.comm	_IEEE80211_CONF_CHANGE_RETRY_LIMITS,4,2 ## @IEEE80211_CONF_CHANGE_RETRY_LIMITS
	.no_dead_strip	_ieee80211_set_wiphy_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_wiphy_params
_ieee80211_set_wiphy_params:            ; @ieee80211_set_wiphy_params
	.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, x1
	mov	x21, x0
	bl	_wiphy_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _WIPHY_PARAM_FRAG_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIPHY_PARAM_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21, #24]
	mov	x0, x19
	bl	_drv_set_frag_threshold
	cbnz	w0, LBB0_16
LBB0_2:
Lloh3:
	adrp	x8, _WIPHY_PARAM_COVERAGE_CLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIPHY_PARAM_COVERAGE_CLASS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_drv_set_coverage_class
	cbnz	w0, LBB0_16
LBB0_4:
Lloh6:
	adrp	x8, _WIPHY_PARAM_RTS_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WIPHY_PARAM_RTS_THRESHOLD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_drv_set_rts_threshold
	cbnz	w0, LBB0_16
LBB0_6:
Lloh9:
	adrp	x8, _WIPHY_PARAM_RETRY_SHORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIPHY_PARAM_RETRY_SHORT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IEEE80211_MAX_TX_RETRY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_MAX_TX_RETRY@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.7:
	ldr	x10, [x21]
	ldr	x11, [x9]
	cmp	x10, x11
	b.gt	LBB0_11
; %bb.8:
	str	x10, [x19]
LBB0_9:
Lloh14:
	adrp	x10, _WIPHY_PARAM_RETRY_LONG@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WIPHY_PARAM_RETRY_LONG@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_13
; %bb.10:
	ldr	x11, [x21, #8]
	ldr	x9, [x9]
	cmp	x11, x9
	b.le	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_12:
	str	x11, [x19, #8]
LBB0_13:
	orr	w8, w10, w8
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
Lloh20:
	adrp	x8, _IEEE80211_CONF_CHANGE_RETRY_LIMITS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_RETRY_LIMITS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_config
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WIPHY_PARAM_FRAG_THRESHOLD,4,2 ; @WIPHY_PARAM_FRAG_THRESHOLD
	.comm	_WIPHY_PARAM_COVERAGE_CLASS,4,2 ; @WIPHY_PARAM_COVERAGE_CLASS
	.comm	_WIPHY_PARAM_RTS_THRESHOLD,4,2  ; @WIPHY_PARAM_RTS_THRESHOLD
	.comm	_WIPHY_PARAM_RETRY_SHORT,4,2    ; @WIPHY_PARAM_RETRY_SHORT
	.comm	_IEEE80211_MAX_TX_RETRY,8,3     ; @IEEE80211_MAX_TX_RETRY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WIPHY_PARAM_RETRY_LONG,4,2     ; @WIPHY_PARAM_RETRY_LONG
	.comm	_IEEE80211_CONF_CHANGE_RETRY_LIMITS,4,2 ; @IEEE80211_CONF_CHANGE_RETRY_LIMITS
	.no_dead_strip	_ieee80211_set_wiphy_params
.subsections_via_symbols
