	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_setmlme
_ieee80211_ioctl_setmlme:               ## @ieee80211_ioctl_setmlme
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	cmpl	$24, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	leaq	-32(%rbp), %rsi
	movl	$24, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	(%rbx), %rax
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rcx
	movq	_IEEE80211_MLME_ASSOC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movl	-20(%rbp), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_setmlme_assoc_sta
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_IEEE80211_M_IBSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_IEEE80211_M_AHDEMO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movq	-32(%rbp), %rsi
	movl	-20(%rbp), %edx
	cmpb	$1, %al
	jne	LBB0_9
## %bb.7:
	movq	_IEEE80211_MLME_ASSOC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_9
## %bb.8:
	movl	-16(%rbp), %ecx
	movl	-12(%rbp), %eax
	movq	%rbx, %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_setmlme_assoc_adhoc
	jmp	LBB0_10
LBB0_9:
	movl	-24(%rbp), %ecx
	movq	%rbx, %rdi
	callq	_setmlme_common
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.comm	_IEEE80211_MLME_ASSOC,8,3       ## @IEEE80211_MLME_ASSOC
	.comm	_IEEE80211_M_IBSS,8,3           ## @IEEE80211_M_IBSS
	.comm	_IEEE80211_M_AHDEMO,8,3         ## @IEEE80211_M_AHDEMO
	.no_dead_strip	_ieee80211_ioctl_setmlme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_setmlme
_ieee80211_ioctl_setmlme:               ; @ieee80211_ioctl_setmlme
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x1]
	cmp	w8, #24
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x1, #4]
	add	x1, sp, #8
	mov	w2, #24
	bl	_copyin
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IEEE80211_M_STA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _IEEE80211_MLME_ASSOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_MLME_ASSOC@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.3:
	ldr	x10, [sp, #8]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.4:
	ldr	w1, [sp, #20]
	ldr	x8, [x19, #8]
	ldp	w3, w2, [x8]
	mov	x0, x19
	bl	_setmlme_assoc_sta
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh8:
	adrp	x10, _IEEE80211_M_IBSS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IEEE80211_M_IBSS@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _IEEE80211_M_AHDEMO@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IEEE80211_M_AHDEMO@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ldr	x1, [sp, #8]
	ldr	x9, [x9]
	ldr	w8, [sp, #20]
	ccmp	x1, x9, #0, eq
	b.eq	LBB0_9
; %bb.8:
	ldr	w3, [sp, #16]
	mov	x0, x19
	mov	x2, x8
	bl	_setmlme_common
	b	LBB0_6
LBB0_9:
	ldp	w3, w2, [sp, #24]
	mov	x0, x19
	mov	x1, x8
	bl	_setmlme_assoc_adhoc
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.comm	_IEEE80211_MLME_ASSOC,8,3       ; @IEEE80211_MLME_ASSOC
	.comm	_IEEE80211_M_IBSS,8,3           ; @IEEE80211_M_IBSS
	.comm	_IEEE80211_M_AHDEMO,8,3         ; @IEEE80211_M_AHDEMO
	.no_dead_strip	_ieee80211_ioctl_setmlme
.subsections_via_symbols
