	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_parse_igu_fifo_dump
_qed_parse_igu_fifo_dump:               ## @qed_parse_igu_fifo_dump
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_qed_read_section_hdr
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rbx
	movl	-52(%rbp), %esi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_qed_print_section_params
	cltq
	leaq	(%rbx,%rax,4), %rbx
	leaq	-64(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_qed_read_section_hdr
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %r12
	leaq	-80(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r12, %rdi
	callq	_qed_read_param
	movl	%eax, %ebx
	movq	-80(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movl	-68(%rbp), %eax
	movq	_IGU_FIFO_ELEMENT_DWORDS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_5
LBB0_1:
	movq	_DBG_STATUS_IGU_FIFO_BAD_DATA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rbx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	callq	_qed_parse_igu_fifo_element
	cmpl	(%r12), %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_8
LBB0_9:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_qed_get_buf_ptr
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_sprintf
                                        ## kill: def $eax killed $eax def $rax
	movl	-44(%rbp), %ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, (%r14)
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"global_params"

	.comm	_DBG_STATUS_IGU_FIFO_BAD_DATA,4,2 ## @DBG_STATUS_IGU_FIFO_BAD_DATA
L_.str.1:                               ## @.str.1
	.asciz	"igu_fifo_data"

L_.str.2:                               ## @.str.2
	.asciz	"size"

	.comm	_IGU_FIFO_ELEMENT_DWORDS,4,2    ## @IGU_FIFO_ELEMENT_DWORDS
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
L_.str.3:                               ## @.str.3
	.asciz	"fifo contained %d elements"

	.no_dead_strip	_qed_parse_igu_fifo_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_parse_igu_fifo_dump
_qed_parse_igu_fifo_dump:               ; @qed_parse_igu_fifo_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	add	x1, sp, #40
	add	x2, sp, #16
	bl	_qed_read_section_hdr
	mov	x22, x0
	ldr	x0, [sp, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.1:
	add	x21, x21, w22, sxtw #2
	ldr	w1, [sp, #16]
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x20
	bl	_qed_print_section_params
	add	x21, x21, w0, sxtw #2
	add	x1, sp, #40
	add	x2, sp, #16
	mov	x0, x21
	bl	_qed_read_section_hdr
	mov	x22, x0
	ldr	x0, [sp, #40]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.2:
	add	x22, x21, w22, sxtw #2
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x22
	bl	_qed_read_param
	mov	x23, x0
	ldr	x0, [sp, #32]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #20]
Lloh6:
	adrp	x9, _IGU_FIFO_ELEMENT_DWORDS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IGU_FIFO_ELEMENT_DWORDS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w21, w8, w9
	msub	w8, w21, w9, w8
	cbz	w8, LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _DBG_STATUS_IGU_FIFO_BAD_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_STATUS_IGU_FIFO_BAD_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh12:
	adrp	x24, _DBG_STATUS_OK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DBG_STATUS_OK@GOTPAGEOFF]
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.7:
	add	x22, x22, w23, sxtw #2
	mov	x23, x21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x20
	bl	_qed_parse_igu_fifo_element
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #4
	subs	x23, x23, #1
	b.ne	LBB0_8
LBB0_10:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_qed_get_buf_ptr
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_sprintf
	ldr	w8, [sp, #12]
	add	w8, w8, w0
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w0, [x24]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"global_params"

	.comm	_DBG_STATUS_IGU_FIFO_BAD_DATA,4,2 ; @DBG_STATUS_IGU_FIFO_BAD_DATA
l_.str.1:                               ; @.str.1
	.asciz	"igu_fifo_data"

l_.str.2:                               ; @.str.2
	.asciz	"size"

	.comm	_IGU_FIFO_ELEMENT_DWORDS,4,2    ; @IGU_FIFO_ELEMENT_DWORDS
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
l_.str.3:                               ; @.str.3
	.asciz	"fifo contained %d elements"

	.no_dead_strip	_qed_parse_igu_fifo_dump
.subsections_via_symbols
