	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setappie
_setappie:                              ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movl	(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	cmpl	$2, %edi
	jl	LBB0_5
## %bb.4:
	movq	_IEEE80211_MAX_APPIE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_5
## %bb.6:
	movq	%rsi, %rbx
	addl	$8, %edi
	movq	_M_80211_NODE_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IEEE80211_MALLOC
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	4(%rax), %esi
	callq	_copyin
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	_M_80211_NODE_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	jmp	LBB0_12
LBB0_1:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_13
## %bb.2:
	movq	$0, (%r15)
LBB0_11:
	movq	_M_80211_NODE_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
LBB0_12:
	callq	_IEEE80211_FREE
	jmp	LBB0_13
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_10:
	movl	(%rbx), %eax
	movl	%eax, (%r13)
	movq	%r13, (%r15)
	xorl	%r12d, %r12d
	testq	%r14, %r14
	jne	LBB0_11
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_80211_NODE_IE,4,2            ## @M_80211_NODE_IE
	.comm	_IEEE80211_MAX_APPIE,4,2        ## @IEEE80211_MAX_APPIE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_M_NOWAIT,4,2         ## @IEEE80211_M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_setappie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setappie
_setappie:                              ; @setappie
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _IEEE80211_MAX_APPIE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_MAX_APPIE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #2
	ccmp	w8, w9, #0, ge
	b.le	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	cbz	x19, LBB0_6
; %bb.4:
	str	xzr, [x20]
Lloh5:
	adrp	x8, _M_80211_NODE_IE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_80211_NODE_IE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
LBB0_5:
	mov	x0, x19
	bl	_IEEE80211_FREE
LBB0_6:
	mov	w22, #0
	b	LBB0_12
LBB0_7:
	mov	x21, x1
	add	w0, w8, #8
Lloh8:
	adrp	x24, _M_80211_NODE_IE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _M_80211_NODE_IE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh10:
	adrp	x8, _IEEE80211_M_NOWAIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_M_NOWAIT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_IEEE80211_MALLOC
	cbz	x0, LBB0_10
; %bb.8:
	mov	x23, x0
	ldr	w1, [x0, #4]
	ldp	w2, w0, [x21]
	bl	_copyin
	cbz	w0, LBB0_13
; %bb.9:
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x23
	bl	_IEEE80211_FREE
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w22, [x8]
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x21]
	str	w8, [x23]
	str	x23, [x20]
	cbz	x19, LBB0_6
; %bb.14:
	ldr	w1, [x24]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_M_80211_NODE_IE,4,2            ; @M_80211_NODE_IE
	.comm	_IEEE80211_MAX_APPIE,4,2        ; @IEEE80211_MAX_APPIE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_M_NOWAIT,4,2         ; @IEEE80211_M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_setappie
.subsections_via_symbols
