	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_getmgtframe          ## -- Begin function ieee80211_getmgtframe
	.p2align	4, 0x90
_ieee80211_getmgtframe:                 ## @ieee80211_getmgtframe
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r15d
	movq	%rdi, %r14
	leal	(%rdx,%r15), %edi
	movl	$4, %esi
	callq	_roundup2
	movq	%rax, %r12
	movq	_MCLBYTES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r12
	setle	%dil
	movq	%r12, %rsi
	callq	_KASSERT
	movq	_MINCLSIZE@GOTPCREL(%rip), %rax
	movq	_M_NOWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MT_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	(%rax), %r12
	jge	LBB0_3
## %bb.1:
	callq	_m_gethdr
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_M_ALIGN
	jmp	LBB0_5
LBB0_3:
	movq	_M_PKTHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_m_getcl
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_MC_ALIGN
LBB0_5:
	movslq	%r15d, %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCLBYTES,8,3                   ## @MCLBYTES
	.comm	_MINCLSIZE,8,3                  ## @MINCLSIZE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_MT_DATA,4,2                    ## @MT_DATA
	.comm	_M_PKTHDR,4,2                   ## @M_PKTHDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_getmgtframe          ; -- Begin function ieee80211_getmgtframe
	.p2align	2
_ieee80211_getmgtframe:                 ; @ieee80211_getmgtframe
	.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
	mov	x20, x1
	mov	x19, x0
	add	w0, w2, w1
	mov	w1, #4
	bl	_roundup2
	mov	x21, x0
Lloh0:
	adrp	x8, _MCLBYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCLBYTES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, le
	mov	x1, x21
	bl	_KASSERT
Lloh3:
	adrp	x8, _MINCLSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MINCLSIZE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	w0, [x9]
Lloh9:
	adrp	x9, _MT_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	cmp	x21, x8
	b.ge	LBB0_3
; %bb.1:
	bl	_m_gethdr
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_M_ALIGN
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _M_PKTHDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_PKTHDR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_m_getcl
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_MC_ALIGN
LBB0_5:
	ldr	x8, [x22]
	add	x8, x8, w20, sxtw #2
	str	x8, [x22]
	str	x8, [x19]
LBB0_6:
	mov	x0, x22
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MCLBYTES,8,3                   ; @MCLBYTES
	.comm	_MINCLSIZE,8,3                  ; @MINCLSIZE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_MT_DATA,4,2                    ; @MT_DATA
	.comm	_M_PKTHDR,4,2                   ; @M_PKTHDR
.subsections_via_symbols
