	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_request_fw
_brcms_request_fw:                      ## @brcms_request_fw
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	addq	$8, %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MAX_FW_IMAGES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	movq	_UCODE_LOADER_API_VER@GOTPCREL(%rip), %rbx
	movq	%r13, -168(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_brcms_firmwares@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	leaq	-160(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	leaq	(,%r14,8), %r15
	movq	32(%r13), %rdi
	addq	%r15, %rdi
	leaq	-160(%rbp), %rsi
	movq	%r12, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_brcms_firmwares@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdx
	movl	(%rbx), %ecx
	leaq	-160(%rbp), %r13
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	addq	24(%rbx), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %r15
	movq	%r12, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	(%rcx), %ecx
	sarl	$2, %ecx
	movl	%ecx, (%rax,%r14,4)
	incq	%r14
	movq	_MAX_FW_IMAGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	movq	%r15, %r12
	movq	%rbx, %r13
	movq	_UCODE_LOADER_API_VER@GOTPCREL(%rip), %rbx
	jl	LBB0_2
LBB0_9:
	movl	%r14d, 16(%r13)
	movq	%r13, %rdi
	movq	%r13, %rsi
	callq	_brcms_ucode_data_init
	movq	%r13, %rdi
	movl	%eax, %r13d
	callq	_brcms_release_fw
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r13d
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movl	40(%rax), %edi
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r13d
	movl	40(%rbx), %edi
LBB0_7:
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-160(%rbp), %rcx
	callq	_wiphy_err
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FW_IMAGES,4,2              ## @MAX_FW_IMAGES
	.comm	_brcms_firmwares,8,3            ## @brcms_firmwares
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%d.fw"

	.comm	_UCODE_LOADER_API_VER,4,2       ## @UCODE_LOADER_API_VER
L_.str.1:                               ## @.str.1
	.asciz	"%s: fail to load firmware %s\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.2:                               ## @.str.2
	.asciz	"%s_hdr-%d.fw"

	.no_dead_strip	_brcms_request_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_request_fw
_brcms_request_fw:                      ; @brcms_request_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, 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]
	add	x0, x0, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh3:
	adrp	x25, _MAX_FW_IMAGES@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_FW_IMAGES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x24, #0
Lloh5:
	adrp	x26, _brcms_firmwares@GOTPAGE
Lloh6:
	ldr	x26, [x26, _brcms_firmwares@GOTPAGEOFF]
Lloh7:
	adrp	x27, _UCODE_LOADER_API_VER@GOTPAGE
Lloh8:
	ldr	x27, [x27, _UCODE_LOADER_API_VER@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
Lloh11:
	adrp	x22, l_.str.2@PAGE
Lloh12:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x2, [x8, x24, lsl #3]
	cbz	x2, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w3, [x27]
	add	x0, sp, #4
	mov	x1, x21
	bl	_sprintf
	ldr	x8, [x19, #32]
	add	x0, x8, x24, lsl #3
	add	x1, sp, #4
	mov	x2, x20
	bl	_request_firmware
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	lsl	x23, x24, #3
	ldr	x2, [x8, x23]
	ldr	w3, [x27]
	add	x0, sp, #4
	mov	x1, x22
	bl	_sprintf
	ldr	x8, [x19, #24]
	add	x0, x8, x23
	add	x1, sp, #4
	mov	x2, x20
	bl	_request_firmware
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w8, [x8]
	asr	w8, w8, #2
	ldr	x9, [x19, #8]
	str	w8, [x9, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x25]
	cmp	x24, x8
	b.lt	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w24, #0
LBB0_7:
	str	w24, [x19, #16]
	mov	x0, x19
	mov	x1, x19
	bl	_brcms_ucode_data_init
	mov	x23, x0
	mov	x0, x19
	bl	_brcms_release_fw
	b	LBB0_9
LBB0_8:
	mov	x23, x0
	ldr	w0, [x19, #40]
Lloh13:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #4
	bl	_wiphy_err
LBB0_9:
	ldur	x8, [x29, #-88]
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_11
; %bb.10:
	mov	x0, x23
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FW_IMAGES,4,2              ; @MAX_FW_IMAGES
	.comm	_brcms_firmwares,8,3            ; @brcms_firmwares
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%d.fw"

	.comm	_UCODE_LOADER_API_VER,4,2       ; @UCODE_LOADER_API_VER
l_.str.1:                               ; @.str.1
	.asciz	"%s: fail to load firmware %s\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.2:                               ; @.str.2
	.asciz	"%s_hdr-%d.fw"

	.no_dead_strip	_brcms_request_fw
.subsections_via_symbols
