	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_fw_dma_add_command_block
_ipw_fw_dma_add_command_block:          ## @ipw_fw_dma_add_command_block
	.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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_CB_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_CB_SRC_LE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_CB_DEST_LE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_CB_SRC_AUTOINC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_CB_SRC_IO_GATED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_CB_DEST_AUTOINC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_CB_SRC_SIZE_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_CB_DEST_SIZE_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_FW_INFO
	movq	(%r12), %rcx
	movq	_CB_NUMBER_OF_ELEMENTS_SMALL@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.1:
	movq	8(%r12), %rdx
	leaq	1(%rcx), %rax
	movq	%rax, (%r12)
	xorl	%eax, %eax
	movl	$0, %edi
	movl	$0, %esi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	_CB_INT_ENABLED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
LBB0_3:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	_CB_LAST_VALID@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
LBB0_5:
	orq	%rdi, %rsi
	orq	%rbx, %r13
	orq	-104(%rbp), %r13                ## 8-byte Folded Reload
	orq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	orq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	orq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	orq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	orq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	orq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	orq	%rsi, %r13
	movq	%r14, %rsi
	xorq	%r15, %rsi
	xorq	%r13, %rsi
	shlq	$5, %rcx
	movq	%rsi, (%rdx,%rcx)
	movq	%r14, 8(%rdx,%rcx)
	movq	%r15, 16(%rdx,%rcx)
	movq	%r13, 24(%rdx,%rcx)
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CB_VALID,8,3                   ## @CB_VALID
	.comm	_CB_SRC_LE,8,3                  ## @CB_SRC_LE
	.comm	_CB_DEST_LE,8,3                 ## @CB_DEST_LE
	.comm	_CB_SRC_AUTOINC,8,3             ## @CB_SRC_AUTOINC
	.comm	_CB_SRC_IO_GATED,8,3            ## @CB_SRC_IO_GATED
	.comm	_CB_DEST_AUTOINC,8,3            ## @CB_DEST_AUTOINC
	.comm	_CB_SRC_SIZE_LONG,8,3           ## @CB_SRC_SIZE_LONG
	.comm	_CB_DEST_SIZE_LONG,8,3          ## @CB_DEST_SIZE_LONG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"src_address=0x%x dest_address=0x%x length=0x%x\n"

	.comm	_CB_NUMBER_OF_ELEMENTS_SMALL,8,3 ## @CB_NUMBER_OF_ELEMENTS_SMALL
	.comm	_CB_INT_ENABLED,8,3             ## @CB_INT_ENABLED
	.comm	_CB_LAST_VALID,8,3              ## @CB_LAST_VALID
	.no_dead_strip	_ipw_fw_dma_add_command_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_fw_dma_add_command_block
_ipw_fw_dma_add_command_block:          ; @ipw_fw_dma_add_command_block
	.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
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _CB_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CB_VALID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _CB_SRC_LE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CB_SRC_LE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _CB_DEST_LE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CB_DEST_LE@GOTPAGEOFF]
Lloh8:
	ldr	x27, [x8]
Lloh9:
	adrp	x8, _CB_SRC_AUTOINC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CB_SRC_AUTOINC@GOTPAGEOFF]
Lloh11:
	ldr	x28, [x8]
Lloh12:
	adrp	x8, _CB_SRC_IO_GATED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CB_SRC_IO_GATED@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
Lloh15:
	adrp	x8, _CB_DEST_AUTOINC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CB_DEST_AUTOINC@GOTPAGEOFF]
Lloh17:
	ldr	x25, [x8]
Lloh18:
	adrp	x8, _CB_SRC_SIZE_LONG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CB_SRC_SIZE_LONG@GOTPAGEOFF]
Lloh20:
	ldr	x26, [x8]
Lloh21:
	adrp	x8, _CB_DEST_SIZE_LONG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CB_DEST_SIZE_LONG@GOTPAGEOFF]
Lloh23:
	ldr	x23, [x8]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_FW_INFO
	ldr	x8, [x24]
Lloh26:
	adrp	x9, _CB_NUMBER_OF_ELEMENTS_SMALL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CB_NUMBER_OF_ELEMENTS_SMALL@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	add	x9, x8, #1
	str	x9, [x24]
	ldr	x9, [x24, #8]
Lloh29:
	adrp	x10, _CB_INT_ENABLED@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CB_INT_ENABLED@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w11, #0
	csel	x10, xzr, x10, eq
Lloh32:
	adrp	x11, _CB_LAST_VALID@GOTPAGE
Lloh33:
	ldr	x11, [x11, _CB_LAST_VALID@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	ldr	w12, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w12, #0
	csel	x11, xzr, x11, eq
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	orr	x12, x12, x21
	ldr	x13, [sp]                       ; 8-byte Folded Reload
	orr	x12, x12, x13
	orr	x12, x12, x27
	orr	x12, x12, x28
	orr	x12, x12, x22
	orr	x12, x12, x25
	orr	x12, x12, x26
	orr	x12, x12, x23
	orr	x10, x12, x10
	orr	x10, x10, x11
	eor	x11, x20, x19
	eor	x11, x11, x10
	add	x8, x9, x8, lsl #5
	stp	x11, x20, [x8]
	stp	x19, x10, [x8, #16]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CB_VALID,8,3                   ; @CB_VALID
	.comm	_CB_SRC_LE,8,3                  ; @CB_SRC_LE
	.comm	_CB_DEST_LE,8,3                 ; @CB_DEST_LE
	.comm	_CB_SRC_AUTOINC,8,3             ; @CB_SRC_AUTOINC
	.comm	_CB_SRC_IO_GATED,8,3            ; @CB_SRC_IO_GATED
	.comm	_CB_DEST_AUTOINC,8,3            ; @CB_DEST_AUTOINC
	.comm	_CB_SRC_SIZE_LONG,8,3           ; @CB_SRC_SIZE_LONG
	.comm	_CB_DEST_SIZE_LONG,8,3          ; @CB_DEST_SIZE_LONG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"src_address=0x%x dest_address=0x%x length=0x%x\n"

	.comm	_CB_NUMBER_OF_ELEMENTS_SMALL,8,3 ; @CB_NUMBER_OF_ELEMENTS_SMALL
	.comm	_CB_INT_ENABLED,8,3             ; @CB_INT_ENABLED
	.comm	_CB_LAST_VALID,8,3              ; @CB_LAST_VALID
	.no_dead_strip	_ipw_fw_dma_add_command_block
.subsections_via_symbols
