	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_feat_firmware_capabilities
_brcmf_feat_firmware_capabilities:      ## @brcmf_feat_firmware_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	_MAX_CAPS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_brcmf_fil_iovar_data_get
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bphy_err
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_brcmf_dbg
	movq	_brcmf_fwcap_map@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	4(%rax,%r14,8), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_strnstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r14,8), %ebx
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_brcmf_feat_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_brcmf_dbg
	movl	%ebx, %edi
	movq	_brcmf_fwcap_map@GOTPCREL(%rip), %rbx
	callq	_BIT
	movq	(%r15), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CAPS_BUFFER_SIZE,4,2       ## @MAX_CAPS_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cap"

L_.str.1:                               ## @.str.1
	.asciz	"could not get firmware cap (%d)\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"[ %s]\n"

	.comm	_brcmf_fwcap_map,8,3            ## @brcmf_fwcap_map
L_.str.3:                               ## @.str.3
	.asciz	"enabling feature: %s\n"

	.comm	_brcmf_feat_names,8,3           ## @brcmf_feat_names
	.no_dead_strip	_brcmf_feat_firmware_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_feat_firmware_capabilities
_brcmf_feat_firmware_capabilities:      ; @brcmf_feat_firmware_capabilities
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x22, [x0]
Lloh3:
	adrp	x8, _MAX_CAPS_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CAPS_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_brcmf_fil_iovar_data_get
	cbz	w0, LBB0_4
; %bb.1:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_bphy_err
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.3:
	sub	sp, x29, #80
	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_4:
Lloh15:
	adrp	x24, _INFO@GOTPAGE
Lloh16:
	ldr	x24, [x24, _INFO@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_brcmf_dbg
Lloh19:
	adrp	x25, _brcmf_fwcap_map@GOTPAGE
Lloh20:
	ldr	x25, [x25, _brcmf_fwcap_map@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.5:
	mov	x26, #0
	mov	x27, #0
Lloh21:
	adrp	x28, _brcmf_feat_names@GOTPAGE
Lloh22:
	ldr	x28, [x28, _brcmf_feat_names@GOTPAGEOFF]
Lloh23:
	adrp	x22, l_.str.3@PAGE
Lloh24:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	add	x26, x26, #8
	cmp	x27, w0, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x8, x26
	ldr	w1, [x8, #4]
	mov	x0, x21
	mov	x2, x20
	bl	_strnstr
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	ldr	w23, [x8, x26]
	ldr	w0, [x24]
	ldr	x8, [x28]
	ldr	x2, [x8, x23, lsl #3]
	mov	x1, x22
	bl	_brcmf_dbg
	mov	x0, x23
	bl	_BIT
	ldr	x8, [x19]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CAPS_BUFFER_SIZE,4,2       ; @MAX_CAPS_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cap"

l_.str.1:                               ; @.str.1
	.asciz	"could not get firmware cap (%d)\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"[ %s]\n"

	.comm	_brcmf_fwcap_map,8,3            ; @brcmf_fwcap_map
l_.str.3:                               ; @.str.3
	.asciz	"enabling feature: %s\n"

	.comm	_brcmf_feat_names,8,3           ; @brcmf_feat_names
	.no_dead_strip	_brcmf_feat_firmware_capabilities
.subsections_via_symbols
