	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_prepare_fw_request
_brcmf_pcie_prepare_fw_request:         ## @brcmf_pcie_prepare_fw_request
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -80(%rbp)
	movl	28(%rdi), %eax
	movl	%eax, -72(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -64(%rbp)
	movl	24(%rdi), %eax
	movl	%eax, -56(%rbp)
	movq	16(%rdi), %rax
	movl	(%rax), %r15d
	movl	4(%rax), %r12d
	movq	_brcmf_pcie_fwnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	leaq	-80(%rbp), %r8
	movl	%eax, %r9d
	callq	_brcmf_fw_alloc_request
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BRCMF_FW_TYPE_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movq	_BRCMF_PCIE_FW_CODE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, 4(%rcx,%rdx,8)
	movq	_BRCMF_FW_TYPE_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BRCMF_PCIE_FW_NVRAM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, 4(%rcx,%rdx,8)
	movq	_BRCMF_FW_REQF_OPTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx,%rdx,8)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_pci_domain_nr
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".bin"

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

	.comm	_brcmf_pcie_fwnames,8,3         ## @brcmf_pcie_fwnames
	.comm	_BRCMF_FW_TYPE_BINARY,4,2       ## @BRCMF_FW_TYPE_BINARY
	.comm	_BRCMF_PCIE_FW_CODE,8,3         ## @BRCMF_PCIE_FW_CODE
	.comm	_BRCMF_FW_TYPE_NVRAM,4,2        ## @BRCMF_FW_TYPE_NVRAM
	.comm	_BRCMF_PCIE_FW_NVRAM,8,3        ## @BRCMF_PCIE_FW_NVRAM
	.comm	_BRCMF_FW_REQF_OPTIONAL,4,2     ## @BRCMF_FW_REQF_OPTIONAL
	.no_dead_strip	_brcmf_pcie_prepare_fw_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_prepare_fw_request
_brcmf_pcie_prepare_fw_request:         ; @brcmf_pcie_prepare_fw_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	ldp	w9, w8, [x0, #24]
	str	w8, [sp, #16]
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #24]
	str	w9, [sp, #32]
	ldr	x8, [x0, #16]
	ldp	w21, w20, [x8]
Lloh7:
	adrp	x8, _brcmf_pcie_fwnames@GOTPAGE
Lloh8:
	ldr	x8, [x8, _brcmf_pcie_fwnames@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x5, x0
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_brcmf_fw_alloc_request
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _BRCMF_FW_TYPE_BINARY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BRCMF_FW_TYPE_BINARY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
Lloh13:
	adrp	x10, _BRCMF_PCIE_FW_CODE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BRCMF_PCIE_FW_CODE@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x10, x9, x10, lsl #3
	str	w8, [x10, #4]
Lloh16:
	adrp	x8, _BRCMF_FW_TYPE_NVRAM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BRCMF_FW_TYPE_NVRAM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x10, _BRCMF_PCIE_FW_NVRAM@GOTPAGE
Lloh20:
	ldr	x10, [x10, _BRCMF_PCIE_FW_NVRAM@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #3
	str	w8, [x9, #4]
Lloh22:
	adrp	x8, _BRCMF_FW_REQF_OPTIONAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BRCMF_FW_REQF_OPTIONAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x9]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_pci_domain_nr
	add	x8, x0, #1
	str	x8, [x20, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_2:
	ldr	x8, [sp, #40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".bin"

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

	.comm	_brcmf_pcie_fwnames,8,3         ; @brcmf_pcie_fwnames
	.comm	_BRCMF_FW_TYPE_BINARY,4,2       ; @BRCMF_FW_TYPE_BINARY
	.comm	_BRCMF_PCIE_FW_CODE,8,3         ; @BRCMF_PCIE_FW_CODE
	.comm	_BRCMF_FW_TYPE_NVRAM,4,2        ; @BRCMF_FW_TYPE_NVRAM
	.comm	_BRCMF_PCIE_FW_NVRAM,8,3        ; @BRCMF_PCIE_FW_NVRAM
	.comm	_BRCMF_FW_REQF_OPTIONAL,4,2     ; @BRCMF_FW_REQF_OPTIONAL
	.no_dead_strip	_brcmf_pcie_prepare_fw_request
.subsections_via_symbols
