	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_hwrm_set_coal             ## -- Begin function bnxt_hwrm_set_coal
	.p2align	4, 0x90
_bnxt_hwrm_set_coal:                    ## @bnxt_hwrm_set_coal
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-112(%rbp), %r12
	movq	%r12, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	(%r15), %edx
	leaq	-80(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	16(%r14), %rsi
	movq	%r14, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	_bnxt_hwrm_set_coal_params
	leaq	12(%r14), %rsi
	movq	%r14, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_bnxt_hwrm_set_coal_params
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	___bnxt_hwrm_set_coal_nq
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%r13,8), %r12
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_bnxt_cp_ring_for_rx
	movl	%eax, %edi
	leaq	-112(%rbp), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_bnxt_cp_ring_for_tx
	movl	%eax, %edi
	leaq	-80(%rbp), %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r15
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	__hwrm_send_message
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_bnxt_cp_ring_for_tx
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	leaq	-80(%rbp), %rsi
	movl	$16, %edx
	callq	__hwrm_send_message
	testl	%eax, %eax
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_14
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_17
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS,4,2 ## @HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_hwrm_set_coal             ; -- Begin function bnxt_hwrm_set_coal
	.p2align	2
_bnxt_hwrm_set_coal:                    ; @bnxt_hwrm_set_coal
	.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	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x20, _HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x1, sp, #16
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	w2, [x20]
	mov	x1, sp
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	add	x21, x19, #16
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_bnxt_hwrm_set_coal_params
	add	x22, x19, #12
	mov	x2, sp
	mov	x0, x19
	mov	x1, x22
	bl	_bnxt_hwrm_set_coal_params
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x26, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh5:
	ldr	x27, [x27, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x22
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	___bnxt_hwrm_set_coal_nq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x23, [x8, x25, lsl #3]
	ldr	x1, [x23]
	cbz	x1, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, sp, #16
	mov	x0, x19
	bl	_bnxt_cp_ring_for_rx
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, sp
	ldr	x1, [x23, #8]
	mov	x0, x19
	bl	_bnxt_cp_ring_for_tx
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_to_le16
	str	x0, [x24]
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #16
	bl	__hwrm_send_message
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x23, #8]
	mov	x2, x21
	cbz	x1, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bnxt_cp_ring_for_tx
	bl	_cpu_to_le16
	str	x0, [sp]
	ldr	w3, [x26]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	__hwrm_send_message
	cbnz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	mov	x2, x21
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_14:
	mov	w24, #0
	b	LBB0_16
LBB0_15:
	mov	x24, x0
LBB0_16:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x24
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS,4,2 ; @HWRM_RING_CMPL_RING_CFG_AGGINT_PARAMS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
.subsections_via_symbols
