	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_get_txq_coalesce           ## -- Begin function qed_get_txq_coalesce
	.p2align	4, 0x90
_qed_get_txq_coalesce:                  ## @qed_get_txq_coalesce
	.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
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_CAU_REG_SB_VAR_MEMORY@GOTPCREL(%rip), %rax
	movslq	(%rdx), %rdx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_qed_dmae_grc2host
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_DP_ERR
	jmp	LBB0_5
LBB0_2:
	movl	-48(%rbp), %edi
	movq	_CAU_SB_ENTRY_TIMER_RES1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GET_FIELD
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_BAR0_MAP_REG_XSDM_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r13), %edi
	callq	_XSTORM_ETH_QUEUE_ZONE_OFFSET
	addl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_qed_rd
	movl	%eax, %ebx
	movq	_COALESCING_TIMESET_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_COALESCING_TIMESET_TIMESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GET_FIELD
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	cltq
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAU_REG_SB_VAR_MEMORY,8,3      ## @CAU_REG_SB_VAR_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmae_grc2host failed %d\n"

	.comm	_CAU_SB_ENTRY_TIMER_RES1,4,2    ## @CAU_SB_ENTRY_TIMER_RES1
	.comm	_BAR0_MAP_REG_XSDM_RAM,4,2      ## @BAR0_MAP_REG_XSDM_RAM
	.comm	_COALESCING_TIMESET_VALID,4,2   ## @COALESCING_TIMESET_VALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_COALESCING_TIMESET_TIMESET,4,2 ## @COALESCING_TIMESET_TIMESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_get_txq_coalesce           ; -- Begin function qed_get_txq_coalesce
	.p2align	2
_qed_get_txq_coalesce:                  ; @qed_get_txq_coalesce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CAU_REG_SB_VAR_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAU_REG_SB_VAR_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x9, [x2]
	add	x2, x8, x9, lsl #2
	add	x3, sp, #8
	mov	w4, #2
	mov	x5, #0
	bl	_qed_dmae_grc2host
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_DP_ERR
	b	LBB0_5
LBB0_2:
	ldr	w0, [sp, #8]
Lloh5:
	adrp	x8, _CAU_SB_ENTRY_TIMER_RES1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAU_SB_ENTRY_TIMER_RES1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_GET_FIELD
	mov	x22, x0
Lloh8:
	adrp	x8, _BAR0_MAP_REG_XSDM_RAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BAR0_MAP_REG_XSDM_RAM@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	ldr	w0, [x23, #4]
	bl	_XSTORM_ETH_QUEUE_ZONE_OFFSET
	add	w2, w0, w24
	mov	x0, x20
	mov	x1, x21
	bl	_qed_rd
	mov	x20, x0
Lloh11:
	adrp	x8, _COALESCING_TIMESET_VALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COALESCING_TIMESET_VALID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_GET_FIELD
	cbz	w0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _COALESCING_TIMESET_TIMESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COALESCING_TIMESET_TIMESET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GET_FIELD
	mov	w24, #0
	lsl	w8, w0, w22
	sxtw	x8, w8
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CAU_REG_SB_VAR_MEMORY,8,3      ; @CAU_REG_SB_VAR_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmae_grc2host failed %d\n"

	.comm	_CAU_SB_ENTRY_TIMER_RES1,4,2    ; @CAU_SB_ENTRY_TIMER_RES1
	.comm	_BAR0_MAP_REG_XSDM_RAM,4,2      ; @BAR0_MAP_REG_XSDM_RAM
	.comm	_COALESCING_TIMESET_VALID,4,2   ; @COALESCING_TIMESET_VALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_COALESCING_TIMESET_TIMESET,4,2 ; @COALESCING_TIMESET_TIMESET
.subsections_via_symbols
