	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_c_process_clm_blob
_brcmf_c_process_clm_blob:              ## @brcmf_c_process_clm_blob
	.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	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	(%r15), %r12
	movq	$0, -64(%rbp)
	movq	_BRCMF_FW_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_DL_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leal	(,%rbx,4), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_brcmf_bus_get_fwname
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edx
	leaq	-64(%rbp), %rdi
	movq	%r13, %rsi
	callq	_firmware_request_nowarn
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_brcmf_info
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_4:
	movq	_MAX_CHUNK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$3, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	-64(%rbp), %rax
	movq	(%rax), %r15
	xorl	%edx, %edx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAX_CHUNK_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %r15
	cmovlq	%r15, %r13
	movq	_DL_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	$0, %ecx
	cmovgl	%ecx, %ebx
	orl	%r14d, %ebx
	movl	(%r12), %edi
	movq	8(%rax), %rsi
	movq	%rdx, %r14
	addq	%rdx, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_brcmf_c_download
	subq	%r13, %r15
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdx
	addq	%r13, %rdx
	movq	_DL_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	-64(%rbp), %rax
	movl	%ebx, %r14d
	jmp	LBB0_7
LBB0_10:
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	-64(%rbp), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_bphy_err
	leaq	L_.str.5(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_brcmf_fil_iovar_int_get
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_15
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_11:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_14:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-96(%rbp), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_15:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_17:
	movq	-64(%rbp), %rdi
	callq	_release_firmware
LBB0_18:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_FW_NAME_LEN,4,2          ## @BRCMF_FW_NAME_LEN
	.comm	_DL_BEGIN,4,2                   ## @DL_BEGIN
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"get CLM blob file name failed (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"no clm_blob available (err=%d), device may have limited channels available\n"

	.comm	_MAX_CHUNK_LEN,8,3              ## @MAX_CHUNK_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DL_END,4,2                     ## @DL_END
L_.str.4:                               ## @.str.4
	.asciz	"clmload (%zu byte file) failed (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"clmload_status"

L_.str.6:                               ## @.str.6
	.asciz	"get clmload_status failed (%d)\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.7:                               ## @.str.7
	.asciz	"clmload_status=%d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_brcmf_c_process_clm_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_c_process_clm_blob
_brcmf_c_process_clm_blob:              ; @brcmf_c_process_clm_blob
	.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, #48
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x28, [x0]
	ldr	x21, [x28]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x8, _BRCMF_FW_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMF_FW_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	lsl	x8, x19, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x25, _DL_BEGIN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DL_BEGIN@GOTPAGEOFF]
	ldr	w26, [x25]
Lloh10:
	adrp	x8, _TRACE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	lsl	w2, w19, #2
	mov	x0, x23
	mov	w1, #0
	bl	_memset
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_brcmf_bus_get_fwname
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x28
	mov	x2, x22
	bl	_bphy_err
	b	LBB0_17
LBB0_2:
	ldr	w2, [x21]
	sub	x0, x29, #96
	mov	x1, x23
	bl	_firmware_request_nowarn
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_brcmf_info
	mov	w22, #0
	b	LBB0_17
LBB0_4:
Lloh21:
	adrp	x27, _MAX_CHUNK_LEN@GOTPAGE
Lloh22:
	ldr	x27, [x27, _MAX_CHUNK_LEN@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x0, x8, #3
Lloh23:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x21, x0
	stp	x28, x24, [x29, #-120]          ; 16-byte Folded Spill
	mov	x28, #0
	ldur	x8, [x29, #-96]
	ldr	x24, [x8]
Lloh26:
	adrp	x19, _DL_END@GOTPAGE
Lloh27:
	ldr	x19, [x19, _DL_END@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x27]
	ldr	w10, [x19]
	cmp	x24, x9
	csel	x22, x24, x9, lt
	csel	w9, wzr, w10, gt
	orr	w23, w9, w26
	ldr	w0, [x21]
	ldr	x8, [x8, #8]
	add	x1, x8, x28
	mov	x2, x22
	bl	_memcpy
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_brcmf_c_download
                                        ; kill: def $w0 killed $w0 def $x0
	sub	x24, x24, x22
	cmp	x24, #1
	ccmp	w0, #0, #0, ge
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x22, x28
	ldr	w8, [x25]
	bic	w26, w23, w8
	ldur	x8, [x29, #-96]
	b	LBB0_6
LBB0_8:
	cbz	w0, LBB0_12
; %bb.9:
	ldur	x8, [x29, #-96]
	ldr	w2, [x8]
	str	x0, [sp, #-16]!
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	ldur	x19, [x29, #-120]               ; 8-byte Folded Reload
	mov	x0, x19
	bl	_bphy_err
	add	sp, sp, #16
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x2, x29, #104
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
	ldur	x24, [x29, #-112]               ; 8-byte Folded Reload
	cbz	w0, LBB0_13
; %bb.10:
	mov	x2, x0
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
	b	LBB0_14
LBB0_11:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_12:
	mov	w22, #0
	ldur	x24, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_15
LBB0_13:
Lloh37:
	adrp	x8, _INFO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldur	x8, [x29, #-104]
	str	x8, [sp, #-16]!
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_brcmf_dbg
	add	sp, sp, #16
LBB0_14:
Lloh42:
	adrp	x8, _EIO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x21
	bl	_kfree
LBB0_16:
	ldur	x0, [x29, #-96]
	bl	_release_firmware
LBB0_17:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x22
	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 AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_FW_NAME_LEN,4,2          ; @BRCMF_FW_NAME_LEN
	.comm	_DL_BEGIN,4,2                   ; @DL_BEGIN
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"get CLM blob file name failed (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"no clm_blob available (err=%d), device may have limited channels available\n"

	.comm	_MAX_CHUNK_LEN,8,3              ; @MAX_CHUNK_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DL_END,4,2                     ; @DL_END
l_.str.4:                               ; @.str.4
	.asciz	"clmload (%zu byte file) failed (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"clmload_status"

l_.str.6:                               ; @.str.6
	.asciz	"get clmload_status failed (%d)\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.7:                               ; @.str.7
	.asciz	"clmload_status=%d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_brcmf_c_process_clm_blob
.subsections_via_symbols
