	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_settxparams
_ieee80211_ioctl_settxparams:           ## @ieee80211_ioctl_settxparams
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %edx
	cmpl	$9, %edx
	jb	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
	jmp	LBB0_32
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	4(%rsi), %edi
	leaq	-88(%rbp), %rsi
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_32
## %bb.3:
	movl	(%rbx), %r13d
	sarl	$5, %r13d
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	cmpl	%r13d, %ebx
	jge	LBB0_32
## %bb.4:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r14
	leaq	4(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %r14
	xorl	%r12d, %r12d
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r15,%r14,8), %rax
	xorl	%ecx, %ecx
	cmpq	24(%rdx,%r14,8), %rax
	setne	%cl
	addl	%ecx, %r12d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %r14
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_23
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
	movq	-88(%rbp), %r15
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	8(%rax), %r13
	addq	%r14, %r13
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	sete	%al
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	sete	%cl
	orb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	(%r15,%r14,8), %rsi
	cmpq	(%rdx,%r14,8), %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_checkrate
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15,%r14,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_checkmcs
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15,%r14,8), %rsi
	cmpq	8(%rdx,%r14,8), %rsi
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_checkrate
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15,%r14,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_checkmcs
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15,%r14,8), %rsi
	cmpq	16(%rdx,%r14,8), %rsi
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_checkrate
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_1
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15,%r14,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_checkmcs
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_1
LBB0_23:
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.25:
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r13d, %r14d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_30
## %bb.26:
	movslq	%r14d, %rbx
	shlq	$5, %rbx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$32, %rbx
	incl	%r14d
	cmpl	%r14d, %r13d
	je	LBB0_30
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_isset
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r12), %rax
	movq	-88(%rbp), %rcx
	movups	(%rcx,%rbx), %xmm0
	movups	16(%rcx,%rbx), %xmm1
	movups	%xmm1, 16(%rax,%rbx)
	movups	%xmm0, (%rax,%rbx)
	jmp	LBB0_29
LBB0_30:
	movq	_ENETRESET@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_24:
	xorl	%eax, %eax
LBB0_32:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_MODE_11A,4,2         ## @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11NA,4,2        ## @IEEE80211_MODE_11NA
	.comm	_IEEE80211_MODE_11NG,4,2        ## @IEEE80211_MODE_11NG
	.comm	_ENETRESET,4,2                  ## @ENETRESET
	.no_dead_strip	_ieee80211_ioctl_settxparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_settxparams
_ieee80211_ioctl_settxparams:           ; @ieee80211_ioctl_settxparams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w2, [x1]
	cmp	w2, #9
	b.lo	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_31
LBB0_3:
	mov	x20, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x1, #4]
	add	x1, sp, #24
	bl	_copyin
	cbnz	w0, LBB0_31
; %bb.4:
	ldr	w8, [x20]
	asr	w21, w8, #5
Lloh2:
	adrp	x8, _IEEE80211_MODE_11A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	cmp	w20, w21
	b.ge	LBB0_30
; %bb.5:
	mov	w26, #0
	sxtw	x8, w20
	add	x9, x23, #4
	stp	x9, x22, [sp]                   ; 16-byte Folded Spill
	lsl	x27, x8, #2
	mov	w28, #16
	bfi	x28, x8, #5, #59
	str	w21, [sp, #16]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w26, #1
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x21, x28
	ldr	x8, [x8, #8]
	add	x9, x25, x28
	ldr	x9, [x9, #8]
	cmp	x8, x9
	cinc	w26, w26, ne
	ldr	w21, [sp, #16]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #4
	add	x28, x28, #32
	add	w20, w20, #1
	cmp	w21, w20
	b.eq	LBB0_24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_isclr
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [sp, #24]
	ldr	x25, [x22]
	ldr	x8, [x23, #8]
	add	x22, x8, x27
Lloh5:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w20, w8
Lloh8:
	adrp	x8, _IEEE80211_MODE_11NG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_MODE_11NG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ccmp	w20, w8, #4, ne
	cset	w8, eq
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	add	x19, x21, x28
	ldur	x1, [x19, #-16]
	add	x24, x25, x28
	ldur	x8, [x24, #-16]
	cmp	x1, x8
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_checkrate
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x1, [x19, #-16]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_checkmcs
	cbz	w0, LBB0_1
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w26, #1
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	ldur	x1, [x19, #-8]
	ldur	x8, [x24, #-8]
	cmp	x1, x8
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_checkrate
	cbnz	w0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x1, [x19, #-8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_checkmcs
	cbz	w0, LBB0_1
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w26, #1
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x21, x28]
	ldr	x8, [x25, x28]
	cmp	x1, x8
	b.eq	LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_checkrate
	cbnz	w0, LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_1
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x21, x28]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_checkmcs
	cbnz	w0, LBB0_6
	b	LBB0_1
LBB0_24:
	cbz	w26, LBB0_30
; %bb.25:
Lloh11:
	adrp	x8, _IEEE80211_MODE_11A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	cmp	w20, w21
	b.ge	LBB0_32
; %bb.26:
	sxtw	x8, w20
	lsl	x19, x8, #5
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x19, x19, #32
	add	w20, w20, #1
	cmp	w21, w20
	b.eq	LBB0_32
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_isset
	cbz	x0, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x22]
	ldr	x9, [sp, #24]
	add	x8, x8, x19
	add	x9, x9, x19
	ldp	q1, q0, [x9]
	stp	q1, q0, [x8]
	b	LBB0_27
LBB0_30:
	mov	w0, #0
LBB0_31:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
Lloh14:
	adrp	x8, _ENETRESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENETRESET@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_MODE_11A,4,2         ; @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11NA,4,2        ; @IEEE80211_MODE_11NA
	.comm	_IEEE80211_MODE_11NG,4,2        ; @IEEE80211_MODE_11NG
	.comm	_ENETRESET,4,2                  ; @ENETRESET
	.no_dead_strip	_ieee80211_ioctl_settxparams
.subsections_via_symbols
