	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_tp_fw_ldst_rw
_t4_tp_fw_ldst_rw:                      ## @t4_tp_fw_ldst_rw
	.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	$104, %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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.1:
	movl	%r9d, %ebx
	movq	%rdi, %r12
	movl	%ecx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-104(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_FW_LDST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %r14d
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FW_CMD_WRITE_F@GOTPCREL(%rip), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	(%rax), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FW_LDST_CMD_ADDRSPACE_V
	orl	%eax, %r14d
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	%rax, -80(%rbp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -88(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %edi
	callq	_cpu_to_be32
	movq	%rax, -96(%rbp)
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edi
	callq	_cpu_to_be32
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -104(%rbp)
	movl	(%r12), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	$32, %ecx
	movq	%r13, %r8
	movl	16(%rbp), %r9d
	callq	_t4_wr_mbox_meat
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rdi
	callq	_be32_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_LDST_CMD,4,2                ## @FW_LDST_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
	.comm	_FW_CMD_WRITE_F,4,2             ## @FW_CMD_WRITE_F
	.no_dead_strip	_t4_tp_fw_ldst_rw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_tp_fw_ldst_rw
_t4_tp_fw_ldst_rw:                      ; @t4_tp_fw_ldst_rw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	cbz	w3, LBB0_9
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	w25, w3
Lloh0:
	adrp	x28, _FW_CMD_READ_F@GOTPAGE
Lloh1:
	ldr	x28, [x28, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh2:
	adrp	x26, _FW_CMD_WRITE_F@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FW_CMD_WRITE_F@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #4
	add	w21, w21, #1
	subs	x25, x25, #1
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh4:
	adrp	x8, _FW_LDST_CMD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FW_LDST_CMD@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh7:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w8, w0
	cmp	w20, #0
	csel	x9, x26, x28, eq
	ldr	w9, [x9]
	orr	w27, w8, w9
	mov	x0, x23
	bl	_FW_LDST_CMD_ADDRSPACE_V
	orr	w0, w27, w0
	bl	_cpu_to_be32
	str	x0, [sp, #56]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_cpu_to_be32
	str	x0, [sp, #48]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	cbz	w20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_cpu_to_be32
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp, #32]
	ldr	w1, [x24]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x24
	mov	w3, #32
	mov	x5, x19
	bl	_t4_wr_mbox_meat
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]
	bl	_be32_to_cpu
	str	w0, [x22]
	b	LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_LDST_CMD,4,2                ; @FW_LDST_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
	.comm	_FW_CMD_WRITE_F,4,2             ; @FW_CMD_WRITE_F
	.no_dead_strip	_t4_tp_fw_ldst_rw
.subsections_via_symbols
