	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_query_params_rw             ## -- Begin function t4_query_params_rw
	.p2align	4, 0x90
_t4_query_params_rw:                    ## @t4_query_params_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$8, %r8d
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_2:
	movq	%r9, %r15
	movl	%r8d, %r13d
	movl	%edx, %r14d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_memset
	movq	_FW_PARAMS_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %r12d
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_FW_PARAMS_CMD_PFN_V
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FW_PARAMS_CMD_VFN_V
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-72(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	movl	%r13d, %r12d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.3:
	movl	24(%rbp), %r14d
	leaq	(,%r12,4), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %r13
	cmpq	%r13, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, (%rax)
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbp), %rax
	movl	(%rax,%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, (%rax)
	jmp	LBB0_6
LBB0_7:
	leaq	-72(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$24, %ecx
	movq	%rdx, %r8
	movl	32(%rbp), %r9d
	callq	_t4_wr_mbox_meat
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:
	movq	-72(%rbp), %r15
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	16(%rbp), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	callq	_be32_to_cpu
	movl	%eax, (%r13,%rbx,4)
	addq	$16, %r15
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_10
LBB0_11:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FW_PARAMS_CMD,4,2              ## @FW_PARAMS_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_query_params_rw             ; -- Begin function t4_query_params_rw
	.p2align	2
_t4_query_params_rw:                    ; @t4_query_params_rw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	cmp	w4, #8
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x6
	mov	x23, x5
	mov	x20, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _FW_PARAMS_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_PARAMS_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh6:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh9:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w26, w8, w9
	mov	x0, x25
	bl	_FW_PARAMS_CMD_PFN_V
	orr	w25, w26, w0
	mov	x0, x24
	bl	_FW_PARAMS_CMD_VFN_V
	orr	w0, w25, w0
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	str	x0, [sp, #16]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_cpu_to_be32
	str	x0, [sp, #32]
	cbnz	w20, LBB0_9
; %bb.3:
	ldr	w5, [x29, #16]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	w3, #24
	bl	_t4_wr_mbox_meat
	cbnz	w0, LBB0_8
; %bb.4:
	cbz	w20, LBB0_8
; %bb.5:
	ldr	x21, [sp, #24]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #16
	bl	_be32_to_cpu
	str	w0, [x19], #4
	subs	w20, w20, #1
	b.ne	LBB0_6
; %bb.7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	w0, [x23]
	bl	_cpu_to_be32
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FW_PARAMS_CMD,4,2              ; @FW_PARAMS_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
.subsections_via_symbols
