	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_alq_log              ## -- Begin function ieee80211_alq_log
	.p2align	4, 0x90
_ieee80211_alq_log:                     ## @ieee80211_alq_log
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ieee80211_alq@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	16(%rbp), %rdi
	movq	_IEEE80211_ALQ_MAX_PAYLOAD@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jb	LBB0_2
## %bb.3:
	movl	%r8d, %r14d
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	callq	_ieee80211_alq_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe64
	movl	%eax, 48(%rbx)
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_htobe16
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_10
LBB0_5:
	movl	$65535, %eax                    ## imm = 0xFFFF
LBB0_7:
	movl	%eax, (%rbx)
	movl	%r14d, %edi
	callq	_htobe16
	movq	%rax, 40(%rbx)
	movq	%r12, %rdi
	callq	_htobe32
	movq	%rax, 32(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_htobe32
	movq	%rax, 24(%rbx)
	movq	16(%rbp), %r14
	leaq	56(%r14), %rdi
	callq	_htobe32
	movq	%rax, 16(%rbx)
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_htobe32
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	addq	$56, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_memcpy
LBB0_9:
	movq	_ieee80211_alq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_alq_post
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ieee80211_alq,8,3              ## @ieee80211_alq
	.comm	_IEEE80211_ALQ_MAX_PAYLOAD,8,3  ## @IEEE80211_ALQ_MAX_PAYLOAD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ticks,4,2                      ## @ticks
	.comm	_curthread,8,3                  ## @curthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_alq_log              ; -- Begin function ieee80211_alq_log
	.p2align	2
_ieee80211_alq_log:                     ; @ieee80211_alq_log
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x26, _ieee80211_alq@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ieee80211_alq@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x6
Lloh2:
	adrp	x8, _IEEE80211_ALQ_MAX_PAYLOAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_ALQ_MAX_PAYLOAD@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x6
	b.lo	LBB0_5
; %bb.2:
	mov	x20, x5
	mov	x24, x4
	mov	x23, x3
	mov	x22, x2
	mov	x25, x1
	mov	x0, x19
	bl	_ieee80211_alq_get
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x27, [x0]
Lloh5:
	adrp	x8, _ticks@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htobe64
	str	w0, [x27, #48]
	cbz	x25, LBB0_6
; %bb.4:
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_htobe16
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
	mov	w0, #65535
LBB0_7:
	str	w0, [x27]
	mov	x0, x24
	bl	_htobe16
	str	x0, [x27, #40]
	mov	x0, x23
	bl	_htobe32
	str	x0, [x27, #32]
	mov	x0, x22
	bl	_htobe32
	str	x0, [x27, #24]
	add	x0, x19, #56
	bl	_htobe32
	str	x0, [x27, #16]
Lloh11:
	adrp	x8, _curthread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_htobe32
	str	x0, [x27, #8]
	cbz	x20, LBB0_9
; %bb.8:
	add	x0, x27, #56
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
LBB0_9:
	ldr	x0, [x26]
	mov	x1, x21
	bl	_alq_post
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ieee80211_alq,8,3              ; @ieee80211_alq
	.comm	_IEEE80211_ALQ_MAX_PAYLOAD,8,3  ; @IEEE80211_ALQ_MAX_PAYLOAD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ticks,4,2                      ; @ticks
	.comm	_curthread,8,3                  ; @curthread
.subsections_via_symbols
