	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_init_get_fwcaps
_ath6kl_init_get_fwcaps:                ## @ath6kl_init_get_fwcaps
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_ATH6KL_FW_CAPABILITY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	(%rdi), %r12
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%eax, %r13d
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$256, %r13d                     ## imm = 0x100
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	subq	%r14, %rbx
	cmpq	$3, %rbx
	jbe	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ecx
	shrl	$3, %ecx
	movl	%r13d, %edx
	andl	$7, %edx
	movl	(%r12,%rcx,4), %ecx
	btl	%edx, %ecx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r15
	movl	%r13d, %edi
	callq	_ath6kl_init_get_fw_capa_name
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %ecx
	callq	_scnprintf
	addq	%rax, %r14
	movq	_ATH6KL_FW_CAPABILITY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	subq	$1, %r14
	jae	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax,%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_ath6kl_warn
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	subq	%rdx, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strncpy                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"..."

	.comm	_ATH6KL_FW_CAPABILITY_MAX,4,2   ## @ATH6KL_FW_CAPABILITY_MAX
L_.str.1:                               ## @.str.1
	.asciz	"firmware capability buffer too small!\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s,"

	.no_dead_strip	_ath6kl_init_get_fwcaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_init_get_fwcaps
_ath6kl_init_get_fwcaps:                ; @ath6kl_init_get_fwcaps
	.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
	mov	x19, x1
Lloh0:
	adrp	x26, _ATH6KL_FW_CAPABILITY_MAX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ATH6KL_FW_CAPABILITY_MAX@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x2
	mov	x25, #0
	mov	w21, #0
	ldr	x27, [x0]
Lloh2:
	adrp	x22, l_.str.2@PAGE
Lloh3:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #256
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x23, x20, x25
	cmp	x23, #3
	b.ls	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w9, w21, #3
	and	w10, w21, #0x7
	ldr	w9, [x27, x9, lsl #2]
	lsr	w9, w9, w10
	tbz	w9, #0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x19, x25
	mov	x0, x21
	bl	_ath6kl_init_get_fw_capa_name
	mov	x3, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_scnprintf
	add	x25, x0, x25
	ldr	w8, [x26]
	b	LBB0_2
LBB0_7:
	cbz	x25, LBB0_9
; %bb.8:
	sub	x8, x25, #1
	b	LBB0_10
LBB0_9:
	mov	x8, #0
LBB0_10:
	strb	wzr, [x19, x8]
	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
LBB0_11:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_warn
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strlen
	add	w8, w0, #1
	sxtw	x2, w8
	add	x8, x19, x20
	sub	x0, x8, x2
	mov	x1, x21
	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
	b	_strncpy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"..."

	.comm	_ATH6KL_FW_CAPABILITY_MAX,4,2   ; @ATH6KL_FW_CAPABILITY_MAX
l_.str.1:                               ; @.str.1
	.asciz	"firmware capability buffer too small!\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s,"

	.no_dead_strip	_ath6kl_init_get_fwcaps
.subsections_via_symbols
