	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexrm_sba_write_descs
_flexrm_sba_write_descs:                ## @flexrm_sba_write_descs
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rcx, -56(%rbp)
	movq	%r8, -48(%rbp)
	cmpq	$0, (%rdi)
	movq	%rcx, %r14
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r12
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdx,%rbx), %esi
	movl	8(%rdx,%rbx), %edi
	callq	_flexrm_srct_desc
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	pushq	16(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_flexrm_enqueue_desc
	addq	$16, %rsp
	addq	$2, %r13
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	addq	$24, %rbx
	cmpq	(%rdi), %r15
	jae	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rdx
	movl	(%rdx,%rbx), %eax
	movq	_BRCM_SBA_CMD_HAS_RESP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rdx,%rbx), %esi
	movl	20(%rdx,%rbx), %edi
	movq	_BRCM_SBA_CMD_HAS_OUTPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_flexrm_dst_desc
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_flexrm_dstt_desc
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	leaq	-56(%rbp), %r8
	pushq	16(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_flexrm_enqueue_desc
	addq	$16, %rsp
	incq	%r13
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdx,%rbx), %eax
	movq	_BRCM_SBA_CMD_HAS_OUTPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdx,%rbx), %esi
	movl	8(%rdx,%rbx), %edi
	callq	_flexrm_dstt_desc
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	pushq	16(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_flexrm_enqueue_desc
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	$16, %rsp
	incq	%r13
	movl	(%rdx,%rbx), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rdx,%rbx), %edi
	movq	_BRCM_SBA_CMD_TYPE_B@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_flexrm_imm_desc
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_flexrm_immt_desc
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	leaq	-48(%rbp), %r9
	movq	%r12, %r13
	movq	%r12, %rdi
	movq	%r14, %r15
	movq	%r14, %rsi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	leaq	-56(%rbp), %r8
	movq	16(%rbp), %r12
	pushq	%r12
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	callq	_flexrm_enqueue_desc
	addq	$16, %rsp
	movq	%r14, %r12
	movq	%r15, %r14
	leaq	1(%r13), %r15
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rbx), %eax
	movq	_BRCM_SBA_CMD_TYPE_B@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_BRCM_SBA_CMD_TYPE_C@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r13
	jmp	LBB0_16
LBB0_17:
	movq	-56(%rbp), %r14
	movq	-48(%rbp), %r8
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	xorl	%edi, %edi
	testq	%r8, %r8
	sete	%dil
	callq	_flexrm_null_desc
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_flexrm_write_desc
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	callq	_flexrm_flip_header_toggle
	movq	-56(%rbp), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCM_SBA_CMD_HAS_RESP,4,2      ## @BRCM_SBA_CMD_HAS_RESP
	.comm	_BRCM_SBA_CMD_HAS_OUTPUT,4,2    ## @BRCM_SBA_CMD_HAS_OUTPUT
	.comm	_BRCM_SBA_CMD_TYPE_B,4,2        ## @BRCM_SBA_CMD_TYPE_B
	.comm	_BRCM_SBA_CMD_TYPE_C,4,2        ## @BRCM_SBA_CMD_TYPE_C
	.no_dead_strip	_flexrm_sba_write_descs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexrm_sba_write_descs
_flexrm_sba_write_descs:                ; @flexrm_sba_write_descs
	.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, x3
	stp	x4, x3, [sp, #16]
	ldr	x8, [x0]
	mov	x25, x3
	cbz	x8, LBB0_17
; %bb.1:
	mov	x20, x6
	mov	x21, x5
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, #0
	mov	x28, #0
	mov	x25, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x19, x27
	ldp	w1, w0, [x8, #4]
	bl	_flexrm_srct_desc
	mov	x3, x0
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x26
	mov	x1, x23
	mov	x2, x22
	mov	x6, x21
	mov	x7, x20
	bl	_flexrm_enqueue_desc
	add	x26, x25, #2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldr	x8, [x24]
	add	x27, x27, #24
	mov	x25, x26
	cmp	x28, x8
	b.hs	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x24, #8]
	ldr	w8, [x19, x27]
Lloh0:
	adrp	x9, _BRCM_SBA_CMD_HAS_RESP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCM_SBA_CMD_HAS_RESP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x9, _BRCM_SBA_CMD_HAS_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCM_SBA_CMD_HAS_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	x10, x19, x27
	ldp	w1, w0, [x10, #16]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_flexrm_dst_desc
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_flexrm_dstt_desc
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, x0
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x6, x21
	mov	x7, x20
	bl	_flexrm_enqueue_desc
	add	x25, x25, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, x27]
Lloh6:
	adrp	x9, _BRCM_SBA_CMD_HAS_OUTPUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BRCM_SBA_CMD_HAS_OUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x19, x27
	ldp	w1, w0, [x26, #4]
	bl	_flexrm_dstt_desc
	mov	x3, x0
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x6, x21
	mov	x7, x20
	bl	_flexrm_enqueue_desc
	add	x25, x25, #1
	ldr	w8, [x26]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x9, _BRCM_SBA_CMD_TYPE_B@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BRCM_SBA_CMD_TYPE_B@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	x10, x19, x27
	ldr	w0, [x10, #12]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_flexrm_imm_desc
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_flexrm_immt_desc
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, x0
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x6, x21
	mov	x7, x20
	bl	_flexrm_enqueue_desc
	add	x26, x25, #1
	ldr	w8, [x19, x27]
Lloh12:
	adrp	x9, _BRCM_SBA_CMD_TYPE_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BRCM_SBA_CMD_TYPE_B@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x9, _BRCM_SBA_CMD_TYPE_C@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BRCM_SBA_CMD_TYPE_C@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
	b	LBB0_3
LBB0_16:
	ldp	x4, x25, [sp, #16]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_17:
	cmp	x4, #0
	cset	w0, eq
	bl	_flexrm_null_desc
	mov	x1, x0
	mov	x0, x25
	bl	_flexrm_write_desc
	bl	_wmb
	mov	x0, x19
	bl	_flexrm_flip_header_toggle
	ldr	x0, [sp, #24]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCM_SBA_CMD_HAS_RESP,4,2      ; @BRCM_SBA_CMD_HAS_RESP
	.comm	_BRCM_SBA_CMD_HAS_OUTPUT,4,2    ; @BRCM_SBA_CMD_HAS_OUTPUT
	.comm	_BRCM_SBA_CMD_TYPE_B,4,2        ; @BRCM_SBA_CMD_TYPE_B
	.comm	_BRCM_SBA_CMD_TYPE_C,4,2        ; @BRCM_SBA_CMD_TYPE_C
	.no_dead_strip	_flexrm_sba_write_descs
.subsections_via_symbols
