	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_ucode_init_buf           ## -- Begin function brcms_ucode_init_buf
	.p2align	4, 0x90
_brcms_ucode_init_buf:                  ## @brcms_ucode_init_buf
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	16(%r12), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%rax,%r13,4)
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %r14
	addq	$8, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	-4(%r14), %edi
	callq	_le32_to_cpu
	cltq
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
	movq	16(%r12), %rax
	addq	$12, %r14
	cmpl	(%rax,%r13,4), %r15d
	jl	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %ecx
	jmp	LBB0_9
LBB0_5:
	movl	%r13d, %eax
	movslq	%ebx, %r15
	movq	24(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r12
	movl	-8(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kvmalloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movslq	%ebx, %rcx
	leaq	(%r12,%rcx,4), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_brcms_err
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_11:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: ucode buf tag:%d can not be found!\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_ucode_init_buf           ; -- Begin function brcms_ucode_init_buf
	.p2align	2
_brcms_ucode_init_buf:                  ; @brcms_ucode_init_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w9, [x0, #8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, #0
	ldr	x8, [x21, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w10, [x8, x23, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	ldr	x8, [x21, #32]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	add	x24, x8, #8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	bl	_le32_to_cpu
	mov	x22, x0
	ldur	w0, [x24, #-4]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x20
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w25, w25, #1
	ldr	x8, [x21, #16]
	ldr	w9, [x8, x23, lsl #2]
	add	x24, x24, #12
	cmp	w25, w9
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21, #8]
	b	LBB0_2
LBB0_8:
	sxtw	x20, w22
	ldr	x8, [x21, #24]
	ldr	x8, [x8, w23, uxtw #3]
	ldr	x22, [x8]
	ldur	w0, [x24, #-8]
	bl	_le32_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvmalloc
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.9:
	add	x1, x22, w21, sxtw #2
	mov	x2, x20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_brcms_err
	str	xzr, [x19]
LBB0_11:
Lloh5:
	adrp	x8, _ENODATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: ucode buf tag:%d can not be found!\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
.subsections_via_symbols
