	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_setroam
_ieee80211_ioctl_setroam:               ## @ieee80211_ioctl_setroam
	.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
	cmpl	$8, (%rsi)
	jne	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r13
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_IEEE80211_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_IEEE80211_MALLOC
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	%rax, %rsi
	callq	_copyin
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.3:
	movq	_IEEE80211_MODE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	xorl	%r12d, %r12d
	cmpl	%edx, %ebx
	jge	LBB0_28
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r12
	leaq	4(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	shlq	$2, %r12
	xorl	%r14d, %r14d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r12
	incl	%ebx
	cmpl	%ebx, %edx
	je	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r15
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %r13
	sete	%dl
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	sete	%al
	movq	(%rcx,%r12,4), %rsi
	cmpq	(%r13,%r12,4), %rsi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rsi
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movb	%dl, -42(%rbp)                  ## 1-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	%r12, %rdi
	callq	_checkrate
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movzbl	-41(%rbp), %eax                 ## 1-byte Folded Reload
	orb	%al, -42(%rbp)                  ## 1-byte Folded Spill
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,4), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_checkmcs
	testl	%eax, %eax
	je	LBB0_26
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rcx,%r12,4), %rax
	xorl	%ecx, %ecx
	cmpq	8(%r13,%r12,4), %rax
	setne	%cl
	addl	%ecx, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_29
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_29
LBB0_17:
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.18:
	movl	(%rsi), %ebx
	cmpl	%edx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_23
## %bb.19:
	movslq	%ebx, %r14
	shlq	$4, %r14
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	addq	$16, %r14
	incl	%ebx
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_23
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_isset
	testq	%rax, %rax
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movups	(%rcx,%r14), %xmm0
	movups	%xmm0, (%rax,%r14)
	jmp	LBB0_20
LBB0_23:
	movq	(%r15), %rax
	movq	_IEEE80211_ROAMING_DEVICE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_28
## %bb.24:
	movq	_ERESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_28
LBB0_25:
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_27:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_28:
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IEEE80211_FREE
LBB0_29:
	movl	%r12d, %eax
	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	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_IEEE80211_M_NOWAIT,4,2         ## @IEEE80211_M_NOWAIT
	.comm	_IEEE80211_M_ZERO,4,2           ## @IEEE80211_M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_MODE_MAX,4,2         ## @IEEE80211_MODE_MAX
	.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	_IEEE80211_ROAMING_DEVICE,8,3   ## @IEEE80211_ROAMING_DEVICE
	.comm	_ERESTART,4,2                   ## @ERESTART
	.no_dead_strip	_ieee80211_ioctl_setroam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_setroam
_ieee80211_ioctl_setroam:               ; @ieee80211_ioctl_setroam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w8, [x1]
	cmp	w8, #8
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x19, _M_TEMP@GOTPAGE
Lloh1:
	ldr	x19, [x19, _M_TEMP@GOTPAGEOFF]
Lloh2:
	adrp	x8, _IEEE80211_M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IEEE80211_M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_IEEE80211_MALLOC
	cbz	x0, LBB0_15
; %bb.2:
	mov	x23, x0
	ldp	w2, w0, [x21]
	mov	x1, x23
	bl	_copyin
	mov	x21, x0
	cbnz	w0, LBB0_25
; %bb.3:
Lloh8:
	adrp	x8, _IEEE80211_MODE_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_MODE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
Lloh11:
	adrp	x8, _IEEE80211_MODE_11A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	cmp	w21, w25
	b.ge	LBB0_16
; %bb.4:
	mov	w27, #0
	sxtw	x8, w21
	add	x9, x24, #4
	stp	x9, x20, [sp]                   ; 16-byte Folded Spill
	lsl	x28, x8, #2
	lsl	x26, x8, #4
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_26
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w27, w27, #1
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x23, x26
	ldr	x8, [x8, #8]
	add	x9, x22, x26
	ldr	x9, [x9, #8]
	cmp	x8, x9
	cinc	w27, w27, ne
	mov	x23, x20
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x28, x28, #4
	add	x26, x26, #16
	add	w21, w21, #1
	cmp	w25, w21
	b.eq	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_isclr
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, x23
	ldr	x23, [x23]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x22, [x8, #8]
Lloh17:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w21, w8
Lloh20:
	adrp	x8, _IEEE80211_MODE_11NG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_MODE_11NG@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ccmp	w21, w8, #4, ne
	cset	w19, eq
	ldr	x1, [x23, x26]
	ldr	x8, [x22, x26]
	cmp	x1, x8
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24, #8]
	add	x0, x8, x28
	bl	_checkrate
	cbnz	w0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w19, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x23, x26]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_checkmcs
	cbnz	w0, LBB0_6
LBB0_14:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
Lloh26:
	adrp	x19, _M_TEMP@GOTPAGE
Lloh27:
	ldr	x19, [x19, _M_TEMP@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_25
LBB0_15:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
	b	LBB0_26
LBB0_16:
	mov	w21, #0
	b	LBB0_25
LBB0_17:
	cbz	w27, LBB0_24
; %bb.18:
Lloh31:
	adrp	x8, _IEEE80211_MODE_11A@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
	cmp	w21, w25
Lloh34:
	adrp	x19, _M_TEMP@GOTPAGE
Lloh35:
	ldr	x19, [x19, _M_TEMP@GOTPAGEOFF]
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b.ge	LBB0_23
; %bb.19:
	sxtw	x8, w21
	lsl	x22, x8, #4
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x22, x22, #16
	add	w21, w21, #1
	cmp	w25, w21
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_isset
	cbz	x0, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	ldr	q0, [x9, x22]
	str	q0, [x8, x22]
	b	LBB0_20
LBB0_23:
	ldr	x8, [x20]
Lloh36:
	adrp	x9, _IEEE80211_ROAMING_DEVICE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IEEE80211_ROAMING_DEVICE@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, _ERESTART@GOTPAGE
Lloh40:
	ldr	x10, [x10, _ERESTART@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w21, w10, wzr, eq
	b	LBB0_25
LBB0_24:
	mov	w21, #0
Lloh42:
	adrp	x19, _M_TEMP@GOTPAGE
Lloh43:
	ldr	x19, [x19, _M_TEMP@GOTPAGEOFF]
LBB0_25:
	ldr	w1, [x19]
	mov	x0, x23
	bl	_IEEE80211_FREE
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_IEEE80211_M_NOWAIT,4,2         ; @IEEE80211_M_NOWAIT
	.comm	_IEEE80211_M_ZERO,4,2           ; @IEEE80211_M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_MODE_MAX,4,2         ; @IEEE80211_MODE_MAX
	.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	_IEEE80211_ROAMING_DEVICE,8,3   ; @IEEE80211_ROAMING_DEVICE
	.comm	_ERESTART,4,2                   ; @ERESTART
	.no_dead_strip	_ieee80211_ioctl_setroam
.subsections_via_symbols
