	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function list_capabilities
_list_capabilities:                     ## @list_capabilities
	.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
	movl	%edi, %r14d
	movq	_verbose@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	movq	_MAXCHAN@GOTPCREL(%rip), %r12
	movl	$1, %edi
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
LBB0_2:
	callq	_IEEE80211_DEVCAPS_SIZE
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	cmpq	$0, (%r15)
	movl	$1, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %eax
LBB0_6:
	movl	%eax, 32(%rbx)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_getdevcaps
	movq	(%rbx), %rsi
	movq	_IEEE80211_C_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_printb
	movq	8(%rbx), %rax
	orq	(%r15), %rax
	je	LBB0_7
## %bb.8:
	movl	$10, %edi
	callq	_putchar
	movq	8(%rbx), %rsi
	movq	_IEEE80211_CRYPTO_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_printb
	cmpq	$0, (%r15)
	setne	%al
	cmpq	$0, 16(%rbx)
	je	LBB0_10
	jmp	LBB0_12
LBB0_7:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
LBB0_10:
	testb	%al, %al
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	je	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movl	$10, %edi
	callq	_putchar
	movq	16(%rbx), %rsi
	movq	_IEEE80211_HTCAP_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_printb
	cmpq	$0, (%r15)
	setne	%al
	cmpq	$0, 24(%rbx)
	jne	LBB0_15
LBB0_14:
	testb	%al, %al
	je	LBB0_16
LBB0_15:
	movl	$10, %edi
	callq	_putchar
	movq	24(%rbx), %rsi
	movq	_IEEE80211_VHTCAP_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rdi
	callq	_printb
LBB0_16:
	movl	$10, %edi
	callq	_putchar
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rsi
	addq	$32, %rsi
	movq	_chaninfo@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	movl	%r14d, %edi
	movl	$1, %edx
	callq	_print_channels
LBB0_18:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,8,3                    ## @verbose
	.comm	_MAXCHAN,4,2                    ## @MAXCHAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no space for device capabilities"

L_.str.1:                               ## @.str.1
	.asciz	"drivercaps"

	.comm	_IEEE80211_C_BITS,4,2           ## @IEEE80211_C_BITS
L_.str.2:                               ## @.str.2
	.asciz	"cryptocaps"

	.comm	_IEEE80211_CRYPTO_BITS,4,2      ## @IEEE80211_CRYPTO_BITS
L_.str.3:                               ## @.str.3
	.asciz	"htcaps"

	.comm	_IEEE80211_HTCAP_BITS,4,2       ## @IEEE80211_HTCAP_BITS
L_.str.4:                               ## @.str.4
	.asciz	"vhtcaps"

	.comm	_IEEE80211_VHTCAP_BITS,4,2      ## @IEEE80211_VHTCAP_BITS
	.comm	_chaninfo,8,3                   ## @chaninfo
	.no_dead_strip	_list_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function list_capabilities
_list_capabilities:                     ; @list_capabilities
	.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	x19, x0
Lloh0:
	adrp	x22, _verbose@GOTPAGE
Lloh1:
	ldr	x22, [x22, _verbose@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _MAXCHAN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAXCHAN@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	x8, #0
	csinc	w0, w9, wzr, ne
	bl	_IEEE80211_DEVCAPS_SIZE
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldr	x8, [x22]
	ldr	w9, [x21]
	cmp	x8, #0
	csinc	w8, w9, wzr, ne
	mov	x21, x20
	str	w8, [x21, #32]!
	mov	x0, x19
	mov	x1, x20
	bl	_getdevcaps
	ldr	x1, [x20]
Lloh6:
	adrp	x8, _IEEE80211_C_BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_C_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printb
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	orr	x8, x8, x9
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #10
	bl	_putchar
	ldr	x1, [x20, #8]
Lloh11:
	adrp	x8, _IEEE80211_CRYPTO_BITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_CRYPTO_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printb
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
LBB0_4:
	ldr	x9, [x20, #16]
	cmp	x9, #0
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #10
	bl	_putchar
	ldr	x1, [x20, #16]
Lloh16:
	adrp	x8, _IEEE80211_HTCAP_BITS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_HTCAP_BITS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printb
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	ldr	x9, [x20, #24]
	cmp	x9, #0
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #10
	bl	_putchar
	ldr	x1, [x20, #24]
Lloh21:
	adrp	x8, _IEEE80211_VHTCAP_BITS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_VHTCAP_BITS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printb
LBB0_9:
	mov	w0, #10
	bl	_putchar
	ldr	x3, [x22]
	cbz	x3, LBB0_11
; %bb.10:
Lloh26:
	adrp	x8, _chaninfo@GOTPAGE
Lloh27:
	ldr	x8, [x8, _chaninfo@GOTPAGEOFF]
Lloh28:
	str	x21, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_print_channels
LBB0_11:
	mov	x0, x20
	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
	b	_free
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,8,3                    ; @verbose
	.comm	_MAXCHAN,4,2                    ; @MAXCHAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no space for device capabilities"

l_.str.1:                               ; @.str.1
	.asciz	"drivercaps"

	.comm	_IEEE80211_C_BITS,4,2           ; @IEEE80211_C_BITS
l_.str.2:                               ; @.str.2
	.asciz	"cryptocaps"

	.comm	_IEEE80211_CRYPTO_BITS,4,2      ; @IEEE80211_CRYPTO_BITS
l_.str.3:                               ; @.str.3
	.asciz	"htcaps"

	.comm	_IEEE80211_HTCAP_BITS,4,2       ; @IEEE80211_HTCAP_BITS
l_.str.4:                               ; @.str.4
	.asciz	"vhtcaps"

	.comm	_IEEE80211_VHTCAP_BITS,4,2      ; @IEEE80211_VHTCAP_BITS
	.comm	_chaninfo,8,3                   ; @chaninfo
	.no_dead_strip	_list_capabilities
.subsections_via_symbols
