	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_init_cmd_rd
_qed_init_cmd_rd:                       ## @qed_init_cmd_rd
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_QED_INIT_POLL_PERIOD_US@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_INIT_READ_OP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
	movl	%eax, %r12d
	shll	$2, %r12d
	movq	_INIT_READ_OP_POLL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
	movl	%eax, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_qed_rd
	movl	%eax, %r14d
	movq	_INIT_POLL_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_1
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addl	$-128, %r15d
	cmpl	$3, %r15d
	jae	LBB0_10
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	_QED_INIT_MAX_POLL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movslq	%r15d, %rax
	leaq	l_switch.table.qed_init_cmd_rd(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	*%r15
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_udelay
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_qed_rd
	movl	%eax, %r14d
	incl	%ebx
	movq	_QED_INIT_MAX_POLL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_ERR                         ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_QED_INIT_MAX_POLL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	cmpl	%eax, %ebx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_9
## %bb.11:
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_ERR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_INIT_POLL_PERIOD_US,4,2    ## @QED_INIT_POLL_PERIOD_US
	.comm	_INIT_READ_OP_ADDRESS,4,2       ## @INIT_READ_OP_ADDRESS
	.comm	_INIT_READ_OP_POLL_TYPE,4,2     ## @INIT_READ_OP_POLL_TYPE
	.comm	_INIT_POLL_NONE,4,2             ## @INIT_POLL_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid poll comparison type %08x\n"

	.comm	_QED_INIT_MAX_POLL_COUNT,4,2    ## @QED_INIT_MAX_POLL_COUNT
L_.str.1:                               ## @.str.1
	.asciz	"Timeout when polling reg: 0x%08x [ Waiting-for: %08x Got: %08x (comparison %08x)]\n"

	.no_dead_strip	_qed_init_cmd_rd
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_init_cmd_rd
l_switch.table.qed_init_cmd_rd:
	.quad	_comp_or
	.quad	_comp_eq
	.quad	_comp_and

.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_rd
_qed_init_cmd_rd:                       ; @qed_init_cmd_rd
	.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	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QED_INIT_POLL_PERIOD_US@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_INIT_POLL_PERIOD_US@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w0, [x2]
	bl	_le32_to_cpu
	mov	x22, x0
Lloh3:
	adrp	x8, _INIT_READ_OP_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INIT_READ_OP_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GET_FIELD
	lsl	w21, w0, #2
Lloh6:
	adrp	x8, _INIT_READ_OP_POLL_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INIT_READ_OP_POLL_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GET_FIELD
	mov	x25, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_qed_rd
Lloh9:
	adrp	x8, _INIT_POLL_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INIT_POLL_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_2
LBB0_1:
	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
LBB0_2:
	sub	w28, w25, #128
	cmp	w28, #3
	b.hs	LBB0_7
; %bb.3:
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
Lloh12:
	adrp	x27, _QED_INIT_MAX_POLL_COUNT@GOTPAGE
Lloh13:
	ldr	x27, [x27, _QED_INIT_MAX_POLL_COUNT@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x25, x0
	mov	w26, #0
Lloh14:
	adrp	x8, l_switch.table.qed_init_cmd_rd@PAGE
Lloh15:
	add	x8, x8, l_switch.table.qed_init_cmd_rd@PAGEOFF
	ldr	x28, [x8, w28, sxtw #3]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x25
	blr	x28
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_udelay
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_qed_rd
	mov	x22, x0
	add	w26, w26, #1
	ldr	w8, [x27]
	cmp	w26, w8
	b.lt	LBB0_5
	b	LBB0_9
LBB0_7:
	ldr	w2, [x20]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_DP_ERR
LBB0_8:
	mov	w26, #0
LBB0_9:
	cmp	w26, w8
	b.ne	LBB0_1
	b	LBB0_11
LBB0_10:
	ldr	w8, [x27]
	cmp	w26, w8
	b.ne	LBB0_1
LBB0_11:
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	w0, [x20]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x23, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DP_ERR
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_INIT_POLL_PERIOD_US,4,2    ; @QED_INIT_POLL_PERIOD_US
	.comm	_INIT_READ_OP_ADDRESS,4,2       ; @INIT_READ_OP_ADDRESS
	.comm	_INIT_READ_OP_POLL_TYPE,4,2     ; @INIT_READ_OP_POLL_TYPE
	.comm	_INIT_POLL_NONE,4,2             ; @INIT_POLL_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid poll comparison type %08x\n"

	.comm	_QED_INIT_MAX_POLL_COUNT,4,2    ; @QED_INIT_MAX_POLL_COUNT
l_.str.1:                               ; @.str.1
	.asciz	"Timeout when polling reg: 0x%08x [ Waiting-for: %08x Got: %08x (comparison %08x)]\n"

	.no_dead_strip	_qed_init_cmd_rd
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_init_cmd_rd
l_switch.table.qed_init_cmd_rd:
	.quad	_comp_or
	.quad	_comp_eq
	.quad	_comp_and

.subsections_via_symbols
