	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_ucode_write
_brcms_ucode_write:                     ## @brcms_ucode_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	8(%rdi), %r12
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_brcms_dbg_info
	movq	_objaddr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_D11REGOFFS
	movq	_OBJADDR_AUTO_INC@GOTPCREL(%rip), %rcx
	movq	_OBJADDR_UCM_SEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%rbx), %edi
	callq	_D11REGOFFS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	cmpq	$4, %r15
	jb	LBB0_3
## %bb.1:
	shrq	$2, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_objdata@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%eax, %r13d
	movl	(%r14,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_bcma_write32
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d\n"

	.comm	_objaddr,4,2                    ## @objaddr
	.comm	_OBJADDR_AUTO_INC,4,2           ## @OBJADDR_AUTO_INC
	.comm	_OBJADDR_UCM_SEL,4,2            ## @OBJADDR_UCM_SEL
	.comm	_objdata,4,2                    ## @objdata
	.no_dead_strip	_brcms_ucode_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_ucode_write
_brcms_ucode_write:                     ; @brcms_ucode_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	ldr	x20, [x0, #8]
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_brcms_dbg_info
Lloh2:
	adrp	x22, _objaddr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _objaddr@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
Lloh4:
	adrp	x8, _OBJADDR_AUTO_INC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OBJADDR_AUTO_INC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _OBJADDR_UCM_SEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OBJADDR_UCM_SEL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_bcma_write32
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	cmp	x21, #4
	b.lo	LBB0_3
; %bb.1:
	lsr	x22, x21, #2
Lloh10:
	adrp	x23, _objdata@GOTPAGE
Lloh11:
	ldr	x23, [x23, _objdata@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x21, x0
	ldr	w0, [x19], #4
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_bcma_write32
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d\n"

	.comm	_objaddr,4,2                    ; @objaddr
	.comm	_OBJADDR_AUTO_INC,4,2           ; @OBJADDR_AUTO_INC
	.comm	_OBJADDR_UCM_SEL,4,2            ; @OBJADDR_UCM_SEL
	.comm	_objdata,4,2                    ; @objdata
	.no_dead_strip	_brcms_ucode_write
.subsections_via_symbols
