	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_init_cmd_wr
_qed_init_cmd_wr:                       ## @qed_init_cmd_wr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdx), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_INIT_WRITE_OP_WIDE_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
	movl	%eax, %r15d
	movq	_INIT_WRITE_OP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
	movl	%eax, %r12d
	shll	$2, %r12d
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_INIT_WRITE_OP_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r13d, %r13d
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	setne	%bl
	movl	(%r14), %edi
	callq	_le32_to_cpu
	cmpl	$64, %eax
	setge	%cl
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.7:
	andb	%cl, %bl
	jne	LBB0_12
## %bb.8:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_qed_init_fill
	jmp	LBB0_11
LBB0_10:
	movl	4(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_le16_to_cpu
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_qed_init_rt
	jmp	LBB0_11
LBB0_5:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_qed_wr
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qed_init_cmd_array             ## TAILCALL
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qed_init_fill_dmae             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_INIT_WRITE_OP_WIDE_BUS,4,2     ## @INIT_WRITE_OP_WIDE_BUS
	.comm	_INIT_WRITE_OP_ADDRESS,4,2      ## @INIT_WRITE_OP_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need to write to %08x for Wide-bus but DMAE isn't allowed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INIT_WRITE_OP_SOURCE,4,2       ## @INIT_WRITE_OP_SOURCE
	.no_dead_strip	_qed_init_cmd_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_init_cmd_wr
_qed_init_cmd_wr:                       ; @qed_init_cmd_wr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x2, #8]
	bl	_le32_to_cpu
	mov	x25, x0
Lloh0:
	adrp	x8, _INIT_WRITE_OP_WIDE_BUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INIT_WRITE_OP_WIDE_BUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GET_FIELD
	mov	x22, x0
Lloh3:
	adrp	x8, _INIT_WRITE_OP_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INIT_WRITE_OP_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_GET_FIELD
	lsl	w21, w0, #2
	cbnz	w23, LBB0_3
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_DP_NOTICE
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
Lloh11:
	adrp	x8, _INIT_WRITE_OP_SOURCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INIT_WRITE_OP_SOURCE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_GET_FIELD
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.4:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w0, [x24]
	bl	_le32_to_cpu
	mov	x4, x0
	cmp	w23, #0
	mov	w8, #63
	ccmp	w0, w8, #4, ne
	cset	w8, gt
	cmp	w22, #0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_10
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_qed_init_fill_dmae
LBB0_7:
	ldr	w0, [x24]
	bl	_le32_to_cpu
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_qed_wr
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x22
	mov	x4, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_qed_init_cmd_array
LBB0_9:
	ldr	w0, [x24, #4]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x24]
	bl	_le16_to_cpu
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	mov	x5, x22
	bl	_qed_init_rt
	b	LBB0_11
LBB0_10:
	bl	_qed_init_fill
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_INIT_WRITE_OP_WIDE_BUS,4,2     ; @INIT_WRITE_OP_WIDE_BUS
	.comm	_INIT_WRITE_OP_ADDRESS,4,2      ; @INIT_WRITE_OP_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need to write to %08x for Wide-bus but DMAE isn't allowed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INIT_WRITE_OP_SOURCE,4,2       ; @INIT_WRITE_OP_SOURCE
	.no_dead_strip	_qed_init_cmd_wr
.subsections_via_symbols
