	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_setappie
_ieee80211_ioctl_setappie:              ## @ieee80211_ioctl_setappie
	.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
	movzbl	(%rsi), %ebx
	movq	_IEEE80211_FC0_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_IEEE80211_FC0_TYPE_MGT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_IEEE80211_LOCK
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_ieee80211_ioctl_setappie_locked
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_IEEE80211_UNLOCK
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FC0_TYPE_MASK,4,2    ## @IEEE80211_FC0_TYPE_MASK
	.comm	_IEEE80211_FC0_TYPE_MGT,4,2     ## @IEEE80211_FC0_TYPE_MGT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ieee80211_ioctl_setappie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_setappie
_ieee80211_ioctl_setappie:              ; @ieee80211_ioctl_setappie
	.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
	ldrb	w20, [x1]
Lloh0:
	adrp	x8, _IEEE80211_FC0_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w20, w8
Lloh3:
	adrp	x9, _IEEE80211_FC0_TYPE_MGT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_FC0_TYPE_MGT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_IEEE80211_LOCK
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_ieee80211_ioctl_setappie_locked
	mov	x19, x0
	mov	x0, x22
	bl	_IEEE80211_UNLOCK
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FC0_TYPE_MASK,4,2    ; @IEEE80211_FC0_TYPE_MASK
	.comm	_IEEE80211_FC0_TYPE_MGT,4,2     ; @IEEE80211_FC0_TYPE_MGT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ieee80211_ioctl_setappie
.subsections_via_symbols
