	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_int_igu_cleanup_sb
_qed_int_igu_cleanup_sb:                ## @qed_int_igu_cleanup_sb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_IGU_CMD_INT_ACK_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdx, %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	addl	%ecx, %r13d
	movq	_IGU_CLEANUP_SLEEP_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IGU_CLEANUP_CLEANUP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	xorl	%edx, %edx
	testl	%ebx, %ebx
	setne	%dl
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmovnel	%eax, %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_SET_FIELD
	movq	_IGU_CLEANUP_CLEANUP_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_SET_FIELD
	movq	_IGU_CLEANUP_COMMAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IGU_COMMAND_TYPE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_SET_FIELD
	movq	_IGU_CTRL_REG_PXP_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	%r13d, %edx
	callq	_SET_FIELD
	movq	_IGU_CTRL_REG_FID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_SET_FIELD
	movq	_IGU_CTRL_REG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IGU_CTRL_CMD_TYPE_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_SET_FIELD
	movq	_IGU_REG_COMMAND_REG_32LSB_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	xorl	%eax, %eax
	callq	_barrier
	movq	_IGU_REG_COMMAND_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leal	31(%rcx), %r13d
	testl	%ecx, %ecx
	movq	_IGU_REG_CLEANUP_STATUS_0@GOTPCREL(%rip), %rax
	cmovnsl	%ecx, %r13d
	sarl	$5, %r13d
	shll	$2, %r13d
	addl	(%rax), %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_qed_rd
	movl	%eax, %ebx
	andl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	decl	%r15d
	jne	LBB0_1
	jmp	LBB0_3
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_NOTICE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IGU_CMD_INT_ACK_BASE,4,2       ## @IGU_CMD_INT_ACK_BASE
	.comm	_IGU_CLEANUP_SLEEP_LENGTH,4,2   ## @IGU_CLEANUP_SLEEP_LENGTH
	.comm	_IGU_CLEANUP_CLEANUP_SET,4,2    ## @IGU_CLEANUP_CLEANUP_SET
	.comm	_IGU_CLEANUP_CLEANUP_TYPE,4,2   ## @IGU_CLEANUP_CLEANUP_TYPE
	.comm	_IGU_CLEANUP_COMMAND_TYPE,4,2   ## @IGU_CLEANUP_COMMAND_TYPE
	.comm	_IGU_COMMAND_TYPE_SET,4,2       ## @IGU_COMMAND_TYPE_SET
	.comm	_IGU_CTRL_REG_PXP_ADDR,4,2      ## @IGU_CTRL_REG_PXP_ADDR
	.comm	_IGU_CTRL_REG_FID,4,2           ## @IGU_CTRL_REG_FID
	.comm	_IGU_CTRL_REG_TYPE,4,2          ## @IGU_CTRL_REG_TYPE
	.comm	_IGU_CTRL_CMD_TYPE_WR,4,2       ## @IGU_CTRL_CMD_TYPE_WR
	.comm	_IGU_REG_COMMAND_REG_32LSB_DATA,4,2 ## @IGU_REG_COMMAND_REG_32LSB_DATA
	.comm	_IGU_REG_COMMAND_REG_CTRL,4,2   ## @IGU_REG_COMMAND_REG_CTRL
	.comm	_IGU_REG_CLEANUP_STATUS_0,8,3   ## @IGU_REG_CLEANUP_STATUS_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for clear status 0x%08x [for sb %d]\n"

	.no_dead_strip	_qed_int_igu_cleanup_sb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_int_igu_cleanup_sb
_qed_int_igu_cleanup_sb:                ; @qed_int_igu_cleanup_sb
	.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	x22, x4
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w3, #0
Lloh0:
	adrp	x8, _IGU_CMD_INT_ACK_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGU_CMD_INT_ACK_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IGU_CLEANUP_SLEEP_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IGU_CLEANUP_SLEEP_LENGTH@GOTPAGEOFF]
	add	w23, w8, w2
Lloh5:
	ldr	w24, [x9]
Lloh6:
	adrp	x8, _IGU_CLEANUP_CLEANUP_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGU_CLEANUP_CLEANUP_SET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	cset	w2, ne
	mov	w8, #1
	lsl	w25, w8, w19
	csel	w26, wzr, w25, eq
	mov	w0, #0
	bl	_SET_FIELD
Lloh9:
	adrp	x8, _IGU_CLEANUP_CLEANUP_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGU_CLEANUP_CLEANUP_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #0
	bl	_SET_FIELD
Lloh12:
	adrp	x8, _IGU_CLEANUP_COMMAND_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IGU_CLEANUP_COMMAND_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _IGU_COMMAND_TYPE_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IGU_COMMAND_TYPE_SET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_SET_FIELD
Lloh18:
	adrp	x8, _IGU_CTRL_REG_PXP_ADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IGU_CTRL_REG_PXP_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #0
	mov	x2, x23
	bl	_SET_FIELD
Lloh21:
	adrp	x8, _IGU_CTRL_REG_FID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IGU_CTRL_REG_FID@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w0, #0
	mov	x2, x22
	bl	_SET_FIELD
Lloh24:
	adrp	x8, _IGU_CTRL_REG_TYPE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IGU_CTRL_REG_TYPE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _IGU_CTRL_CMD_TYPE_WR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IGU_CTRL_CMD_TYPE_WR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_SET_FIELD
Lloh30:
	adrp	x8, _IGU_REG_COMMAND_REG_32LSB_DATA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IGU_REG_COMMAND_REG_32LSB_DATA@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_qed_wr
	bl	_barrier
Lloh33:
	adrp	x8, _IGU_REG_COMMAND_REG_CTRL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IGU_REG_COMMAND_REG_CTRL@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	add	w22, w19, #31
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_qed_wr
	cmp	w19, #0
	csel	w8, w22, w19, lt
	asr	w8, w8, #5
Lloh36:
	adrp	x9, _IGU_REG_CLEANUP_STATUS_0@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IGU_REG_CLEANUP_STATUS_0@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	add	w22, w9, w8, lsl #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_qed_rd
	mov	x23, x0
	and	w8, w0, w25
	cmp	w8, w26
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	subs	w24, w24, #1
	b.ne	LBB0_1
	b	LBB0_5
LBB0_3:
	cbz	w24, LBB0_5
; %bb.4:
	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
LBB0_5:
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	mov	x3, x19
	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	_DP_NOTICE
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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 AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_IGU_CMD_INT_ACK_BASE,4,2       ; @IGU_CMD_INT_ACK_BASE
	.comm	_IGU_CLEANUP_SLEEP_LENGTH,4,2   ; @IGU_CLEANUP_SLEEP_LENGTH
	.comm	_IGU_CLEANUP_CLEANUP_SET,4,2    ; @IGU_CLEANUP_CLEANUP_SET
	.comm	_IGU_CLEANUP_CLEANUP_TYPE,4,2   ; @IGU_CLEANUP_CLEANUP_TYPE
	.comm	_IGU_CLEANUP_COMMAND_TYPE,4,2   ; @IGU_CLEANUP_COMMAND_TYPE
	.comm	_IGU_COMMAND_TYPE_SET,4,2       ; @IGU_COMMAND_TYPE_SET
	.comm	_IGU_CTRL_REG_PXP_ADDR,4,2      ; @IGU_CTRL_REG_PXP_ADDR
	.comm	_IGU_CTRL_REG_FID,4,2           ; @IGU_CTRL_REG_FID
	.comm	_IGU_CTRL_REG_TYPE,4,2          ; @IGU_CTRL_REG_TYPE
	.comm	_IGU_CTRL_CMD_TYPE_WR,4,2       ; @IGU_CTRL_CMD_TYPE_WR
	.comm	_IGU_REG_COMMAND_REG_32LSB_DATA,4,2 ; @IGU_REG_COMMAND_REG_32LSB_DATA
	.comm	_IGU_REG_COMMAND_REG_CTRL,4,2   ; @IGU_REG_COMMAND_REG_CTRL
	.comm	_IGU_REG_CLEANUP_STATUS_0,8,3   ; @IGU_REG_CLEANUP_STATUS_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for clear status 0x%08x [for sb %d]\n"

	.no_dead_strip	_qed_int_igu_cleanup_sb
.subsections_via_symbols
