	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_fw_alloc_request         ## -- Begin function brcmf_fw_alloc_request
	.p2align	4, 0x90
_brcmf_fw_alloc_request:                ## @brcmf_fw_alloc_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	addq	$8, %r13
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	addq	$24, %r13
	cmpq	%r14, %rbx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, -8(%r13)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_2
## %bb.5:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	leaq	-60(%rbp), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$12, %ecx
	callq	_brcmf_chip_name
	jmp	LBB0_9
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	leaq	-60(%rbp), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$12, %ecx
	callq	_brcmf_chip_name
	cmpq	%rbx, %r14
	jne	LBB0_13
LBB0_9:
	leaq	L_.str(%rip), %rdi
	leaq	-60(%rbp), %rsi
	callq	_brcmf_err
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.12:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_items@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_10
## %bb.14:
	leaq	(%r14,%r14,2), %r14
	movq	16(%r13,%r14,8), %rsi
	leaq	L_.str.1(%rip), %rdi
	leaq	-60(%rbp), %rdx
	callq	_brcmf_info
	movq	_brcmf_mp_global@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_BRCMF_FW_ALTPATH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_strnlen
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movsbl	-1(%rax,%r12), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	testq	%rax, %rax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.17:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	16(,%r14,8), %r14
	addq	%r13, %r14
	movq	8(%r15), %rax
	xorl	%r12d, %r12d
	movq	_BRCMF_FW_NAME_LEN@GOTPCREL(%rip), %r13
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	movl	(%r13), %edx
	callq	_strlcat
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	movl	(%r13), %edx
	callq	_strlcat
	movq	(%rbx), %rcx
	movq	8(%r15), %rax
	movq	%rcx, (%rax,%r12,8)
	incq	%r12
	addq	$16, %rbx
	cmpq	%r12, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	%rcx, (%rax,%r12,8)
	movb	$0, (%rcx)
	movq	_brcmf_mp_global@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rbx), %rdi
	movl	(%r13), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_strlcpy
	cmpl	$47, -72(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rbx), %rdi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strlcat
	jmp	LBB0_18
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown chip %s\n"

	.comm	_items,4,2                      ## @items
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"using %s for chip %s\n"

	.comm	_brcmf_mp_global,8,3            ## @brcmf_mp_global
	.comm	_BRCMF_FW_ALTPATH_LEN,4,2       ## @BRCMF_FW_ALTPATH_LEN
	.comm	_BRCMF_FW_NAME_LEN,4,2          ## @BRCMF_FW_NAME_LEN
L_.str.2:                               ## @.str.2
	.asciz	"/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_fw_alloc_request         ; -- Begin function brcmf_fw_alloc_request
	.p2align	2
_brcmf_fw_alloc_request:                ; @brcmf_fw_alloc_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x25, #0
	cbz	x3, LBB0_5
; %bb.1:
	add	x26, x22, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x26, x26, #24
	cmp	x23, x25
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x26, #-8]
	cmp	x8, x24
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w27, [x26]
	mov	x0, x21
	bl	_BIT
	tst	w0, w27
	b.eq	LBB0_2
LBB0_5:
	add	x2, sp, #12
	mov	x0, x24
	mov	x1, x21
	mov	w3, #12
	bl	_brcmf_chip_name
	cmp	x25, x23
	b.eq	LBB0_10
; %bb.6:
Lloh3:
	adrp	x8, _items@GOTPAGE
Lloh4:
	ldr	x8, [x8, _items@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_struct_size
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.7:
	mov	w8, #24
	madd	x24, x25, x8, x22
	ldr	x1, [x24, #16]!
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_brcmf_info
Lloh11:
	adrp	x25, _brcmf_mp_global@GOTPAGE
Lloh12:
	ldr	x25, [x25, _brcmf_mp_global@GOTPAGEOFF]
	ldr	x22, [x25]
Lloh13:
	adrp	x8, _BRCMF_FW_ALTPATH_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BRCMF_FW_ALTPATH_LEN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_strnlen
	cbz	x0, LBB0_13
; %bb.8:
	add	x8, x0, x22
	ldursb	w26, [x8, #-1]
	str	x19, [x21]
	cbnz	x19, LBB0_14
	b	LBB0_11
LBB0_9:
	add	x2, sp, #12
	mov	x0, x24
	mov	x1, x21
	mov	w3, #12
	bl	_brcmf_chip_name
LBB0_10:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_brcmf_err
	mov	x21, #0
LBB0_11:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.12:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	mov	w26, #0
	str	x19, [x21]
	cbz	x19, LBB0_11
LBB0_14:
	mov	x27, #0
	ldr	x8, [x21, #8]
Lloh21:
	adrp	x28, _BRCMF_FW_NAME_LEN@GOTPAGE
Lloh22:
	ldr	x28, [x28, _BRCMF_FW_NAME_LEN@GOTPAGEOFF]
Lloh23:
	adrp	x23, l_.str.2@PAGE
Lloh24:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x20]
	ldr	x1, [x24]
	ldr	w2, [x28]
	bl	_strlcat
	ldp	x0, x1, [x20]
	ldr	w2, [x28]
	bl	_strlcat
	ldr	x9, [x20], #16
	ldr	x8, [x21, #8]
	str	x9, [x8, x27, lsl #3]
	add	x27, x27, #1
	cmp	x19, x27
	b.eq	LBB0_11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	str	x9, [x8, x27, lsl #3]
	strb	wzr, [x9]
	ldr	x8, [x25]
	ldrb	w8, [x8]
	cbz	w8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x20]
	ldr	w2, [x28]
	mov	x1, x22
	bl	_strlcpy
	cmp	w26, #47
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x20]
	ldr	w2, [x28]
	mov	x1, x23
	bl	_strlcat
	b	LBB0_15
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown chip %s\n"

	.comm	_items,4,2                      ; @items
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"using %s for chip %s\n"

	.comm	_brcmf_mp_global,8,3            ; @brcmf_mp_global
	.comm	_BRCMF_FW_ALTPATH_LEN,4,2       ; @BRCMF_FW_ALTPATH_LEN
	.comm	_BRCMF_FW_NAME_LEN,4,2          ; @BRCMF_FW_NAME_LEN
l_.str.2:                               ; @.str.2
	.asciz	"/"

.subsections_via_symbols
