	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_alq_setlogging
_ieee80211_alq_setlogging:              ## @ieee80211_alq_setlogging
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %eax
	movq	_ieee80211_alq@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_alq_close
LBB0_3:
	movq	_ieee80211_alq_logfile@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_ALQ_DEFAULT_CMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ieee80211_alq_qsize@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ieee80211_alq@GOTPCREL(%rip), %rdi
	xorl	%r9d, %r9d
	callq	_alq_open
	movl	%eax, %ebx
	movq	_ieee80211_alq_lost@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_ieee80211_alq_logged@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_alq_close
LBB0_6:
	movq	$0, (%rbx)
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ieee80211_alq,8,3              ## @ieee80211_alq
	.comm	_ieee80211_alq_logfile,8,3      ## @ieee80211_alq_logfile
	.comm	_curthread,8,3                  ## @curthread
	.comm	_ALQ_DEFAULT_CMODE,4,2          ## @ALQ_DEFAULT_CMODE
	.comm	_ieee80211_alq_qsize,4,2        ## @ieee80211_alq_qsize
	.comm	_ieee80211_alq_lost,8,3         ## @ieee80211_alq_lost
	.comm	_ieee80211_alq_logged,8,3       ## @ieee80211_alq_logged
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net80211: logging to %s enabled; struct size %d bytes\n"

L_str:                                  ## @str
	.asciz	"net80211: logging disabled"

	.no_dead_strip	_ieee80211_alq_setlogging
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_alq_setlogging
_ieee80211_alq_setlogging:              ; @ieee80211_alq_setlogging
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x0
Lloh0:
	adrp	x19, _ieee80211_alq@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ieee80211_alq@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	bl	_alq_close
LBB0_3:
Lloh2:
	adrp	x20, _ieee80211_alq_logfile@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ieee80211_alq_logfile@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh4:
	adrp	x8, _curthread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _ALQ_DEFAULT_CMODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ALQ_DEFAULT_CMODE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x8, _ieee80211_alq_qsize@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ieee80211_alq_qsize@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x0, _ieee80211_alq@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ieee80211_alq@GOTPAGEOFF]
	mov	w5, #0
	bl	_alq_open
	mov	x19, x0
Lloh15:
	adrp	x8, _ieee80211_alq_lost@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ieee80211_alq_lost@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
Lloh18:
	adrp	x8, _ieee80211_alq_logged@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ieee80211_alq_logged@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
	ldr	x8, [x20]
	mov	w9, #4
	stp	x8, x9, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x19
	b	LBB0_7
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
	bl	_alq_close
LBB0_6:
	str	xzr, [x19]
Lloh23:
	adrp	x0, l_str@PAGE
Lloh24:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ieee80211_alq,8,3              ; @ieee80211_alq
	.comm	_ieee80211_alq_logfile,8,3      ; @ieee80211_alq_logfile
	.comm	_curthread,8,3                  ; @curthread
	.comm	_ALQ_DEFAULT_CMODE,4,2          ; @ALQ_DEFAULT_CMODE
	.comm	_ieee80211_alq_qsize,4,2        ; @ieee80211_alq_qsize
	.comm	_ieee80211_alq_lost,8,3         ; @ieee80211_alq_lost
	.comm	_ieee80211_alq_logged,8,3       ; @ieee80211_alq_logged
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net80211: logging to %s enabled; struct size %d bytes\n"

l_str:                                  ; @str
	.asciz	"net80211: logging disabled"

	.no_dead_strip	_ieee80211_alq_setlogging
.subsections_via_symbols
