	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_fw_strip_multi_v2
_brcmf_fw_strip_multi_v2:               ## @brcmf_fw_strip_multi_v2
	.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
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BRCMF_FW_NVRAM_PCIEDEV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r14), %edi
	addl	$12, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jne	LBB0_3
## %bb.2:
	movq	8(%r14), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_15:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_kfree
	jmp	LBB0_16
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rdi
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	leaq	(%rdi,%r15,8), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rdi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%r12, %r15
	leaq	(,%r15,8), %rdi
	addq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, 16(%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rdi
	movq	(%rdi,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, (%rbx,%r13,8)
	incq	%r13
	movq	8(%rdi,%r15,8), %rax
	incq	%r15
	testq	%rax, %rax
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rbx,%r13,8)
	incq	%r13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rdi,%r15,8)
	leaq	1(%r15), %r15
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r14), %rax
	subq	%r12, %rax
	cmpq	%rax, %r15
	jb	LBB0_4
LBB0_14:
	callq	_kfree
	movq	%rbx, 8(%r14)
LBB0_16:
	movl	%r13d, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_FW_NVRAM_PCIEDEV_LEN,4,2 ## @BRCMF_FW_NVRAM_PCIEDEV_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcie/%d/%d/"

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

	.no_dead_strip	_brcmf_fw_strip_multi_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_fw_strip_multi_v2
_brcmf_fw_strip_multi_v2:               ; @brcmf_fw_strip_multi_v2
	.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	x22, x2
	mov	x23, x1
	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]
Lloh3:
	adrp	x8, _BRCMF_FW_NVRAM_PCIEDEV_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMF_FW_NVRAM_PCIEDEV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	w8, [x0]
	add	w0, w8, #12
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	mov	x4, x22
	bl	_snprintf
	mov	x0, x21
	bl	_strlen
	ldrsw	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x24, #0
	ldr	x0, [x19, #8]
	b	LBB0_16
LBB0_3:
	bl	_kfree
	mov	w24, #0
	b	LBB0_17
LBB0_4:
	mov	x22, x0
	mov	x26, #0
	mov	x24, #0
	ldr	x0, [x19, #8]
	mov	w25, #1
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	add	x0, x0, x26, lsl #3
	mov	x1, x21
	mov	x2, x22
	bl	_strncmp
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x26, x22
	ldr	x8, [x19, #8]
	add	x0, x8, x27, lsl #3
	mov	x1, x23
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w25, [x19, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	ldr	x9, [x0, x27, lsl #3]
	cbz	x9, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, #8
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x9, [x20, x24, lsl #3]
	add	x26, x27, #1
	add	x24, x24, #1
	ldr	x9, [x8, x27, lsl #3]
	mov	x27, x26
	cbnz	x9, LBB0_11
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x20, x24, lsl #3]
	add	x24, x24, #1
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x0, x26, lsl #3]
	add	x26, x26, #1
	cbnz	x8, LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x19]
	sub	x8, x8, x22
	cmp	x26, x8
	b.lo	LBB0_5
LBB0_16:
	bl	_kfree
	str	x20, [x19, #8]
LBB0_17:
	str	w24, [x19]
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_FW_NVRAM_PCIEDEV_LEN,4,2 ; @BRCMF_FW_NVRAM_PCIEDEV_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcie/%d/%d/"

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

	.no_dead_strip	_brcmf_fw_strip_multi_v2
.subsections_via_symbols
