	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnxt_poll_work
___bnxt_poll_work:                      ## @__bnxt_poll_work
	.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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rbx
	movl	8(%rsi), %edi
	movl	%edi, -44(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, (%rsi)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	callq	_RING_CMP
	movl	%eax, %ebx
	movq	16(%r14), %r13
	movl	%eax, %edi
	callq	_CP_RING
	movq	(%r13,%rax,8), %r13
	movl	%ebx, %edi
	callq	_CP_IDX
	leaq	(%r13,%rax,4), %r13
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_TX_CMP_VALID
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	$1, 4(%r14)
	movq	%r13, %rdi
	callq	_TX_CMP_TYPE
	movq	_CMP_TYPE_TX_L2_CMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %ebx
	xorl	%edi, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TX_CMP_TYPE
	andl	$48, %eax
	cmpl	$16, %eax
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_bnxt_rx_pkt
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TX_CMP_TYPE
	movb	$1, %bl
	movq	_CMPL_BASE_TYPE_HWRM_DONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TX_CMP_TYPE
	movq	_CMPL_BASE_TYPE_HWRM_FWD_REQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TX_CMP_TYPE
	movq	_CMPL_BASE_TYPE_HWRM_ASYNC_EVENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%bl
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%bl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_bnxt_hwrm_handler
	jmp	LBB0_24
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_bnxt_force_rx_discard
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	addl	%ebx, %r15d
	jmp	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rbx
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	callq	_NEXT_RAW_CMP
	movl	%eax, %edi
	movl	%eax, -44(%rbp)
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jne	LBB0_1
	jmp	LBB0_27
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EBUSY@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r12, %rbx
	jne	LBB0_25
	jmp	LBB0_28
LBB0_2:
	movq	%r12, %rbx
	jmp	LBB0_28
LBB0_6:
	movl	-44(%rbp), %edi
	callq	_NEXT_RAW_CMP
	movl	%eax, -44(%rbp)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
LBB0_27:
	movl	$1, (%r14)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_28:
	movl	-52(%rbp), %eax
	movq	_BNXT_REDIRECT_EVENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	callq	_xdp_do_flush_map
	movl	-52(%rbp), %eax
LBB0_30:
	movq	_BNXT_TX_EVENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.31:
	movq	8(%r12), %rbx
	movl	4(%rbx), %r13d
	xorl	%eax, %eax
	callq	_wmb
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rbx
	movl	%r13d, %edx
	callq	_bnxt_db_write_relaxed
LBB0_32:
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, (%rbx)
	movl	-52(%rbp), %eax
	orl	%eax, 4(%rbx)
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r15d, %r15d
	movl	%ebx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_CMP_TYPE_TX_L2_CMP,4,2         ## @CMP_TYPE_TX_L2_CMP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMPL_BASE_TYPE_HWRM_DONE,4,2   ## @CMPL_BASE_TYPE_HWRM_DONE
	.comm	_CMPL_BASE_TYPE_HWRM_FWD_REQ,4,2 ## @CMPL_BASE_TYPE_HWRM_FWD_REQ
	.comm	_CMPL_BASE_TYPE_HWRM_ASYNC_EVENT,4,2 ## @CMPL_BASE_TYPE_HWRM_ASYNC_EVENT
	.comm	_BNXT_REDIRECT_EVENT,4,2        ## @BNXT_REDIRECT_EVENT
	.comm	_BNXT_TX_EVENT,4,2              ## @BNXT_TX_EVENT
	.no_dead_strip	___bnxt_poll_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bnxt_poll_work
___bnxt_poll_work:                      ; @__bnxt_poll_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	mov	w25, #0
	ldr	x24, [x1, #24]
	ldr	w0, [x1, #8]
	stp	wzr, w0, [sp, #8]
	str	wzr, [x1]
	mov	w26, #1
Lloh0:
	adrp	x27, _CMP_TYPE_TX_L2_CMP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _CMP_TYPE_TX_L2_CMP@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_RING_CMP
	mov	x23, x0
	ldr	x28, [x19, #16]
	bl	_CP_RING
	ldr	x28, [x28, x0, lsl #3]
	mov	x0, x23
	bl	_CP_IDX
	add	x23, x28, x0, lsl #2
	ldr	w1, [sp, #12]
	mov	x0, x23
	bl	_TX_CMP_VALID
	cbz	w0, LBB0_25
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_dma_rmb
	str	w26, [x19, #4]
	mov	x0, x23
	bl	_TX_CMP_TYPE
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w23, w25, #1
	ldr	w8, [x20]
	cmp	w25, w8
	cset	w0, ge
	bl	_unlikely
	cbnz	x0, LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x23
	b	LBB0_20
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_TX_CMP_TYPE
	and	w8, w0, #0x30
	cmp	w8, #16
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_likely
	add	x2, sp, #12
	add	x3, sp, #8
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_rx_pkt
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_TX_CMP_TYPE
Lloh2:
	adrp	x8, _CMPL_BASE_TYPE_HWRM_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMPL_BASE_TYPE_HWRM_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_TX_CMP_TYPE
Lloh5:
	adrp	x8, _CMPL_BASE_TYPE_HWRM_FWD_REQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMPL_BASE_TYPE_HWRM_FWD_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_18
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_force_rx_discard
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_likely
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w21, w23, w21
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w22, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w23, w8
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w21, w21, #1
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_TX_CMP_TYPE
Lloh11:
	adrp	x8, _CMPL_BASE_TYPE_HWRM_ASYNC_EVENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMPL_BASE_TYPE_HWRM_ASYNC_EVENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_bnxt_hwrm_handler
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #12]
	bl	_NEXT_RAW_CMP
	str	w0, [sp, #12]
	cbz	w21, LBB0_1
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w21, w22
	b.ne	LBB0_1
	b	LBB0_24
LBB0_22:
	ldr	w0, [sp, #12]
	bl	_NEXT_RAW_CMP
	str	w0, [sp, #12]
	cbz	w22, LBB0_30
; %bb.23:
	mov	x25, x23
LBB0_24:
	mov	w8, #1
	str	w8, [x19]
	mov	x21, x22
LBB0_25:
	ldr	w8, [sp, #8]
Lloh17:
	adrp	x9, _BNXT_REDIRECT_EVENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BNXT_REDIRECT_EVENT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
	bl	_xdp_do_flush_map
	ldr	w8, [sp, #8]
LBB0_27:
Lloh20:
	adrp	x9, _BNXT_TX_EVENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BNXT_TX_EVENT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	x22, [x24, #8]
	ldr	w23, [x22, #4]
	bl	_wmb
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_bnxt_db_write_relaxed
LBB0_29:
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	ldp	w8, w9, [x24]
	add	w8, w8, w25
	str	w8, [x24]
	ldr	w8, [sp, #8]
	orr	w8, w9, w8
	str	w8, [x24, #4]
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_30:
	mov	w21, #0
	mov	x25, x23
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CMP_TYPE_TX_L2_CMP,4,2         ; @CMP_TYPE_TX_L2_CMP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMPL_BASE_TYPE_HWRM_DONE,4,2   ; @CMPL_BASE_TYPE_HWRM_DONE
	.comm	_CMPL_BASE_TYPE_HWRM_FWD_REQ,4,2 ; @CMPL_BASE_TYPE_HWRM_FWD_REQ
	.comm	_CMPL_BASE_TYPE_HWRM_ASYNC_EVENT,4,2 ; @CMPL_BASE_TYPE_HWRM_ASYNC_EVENT
	.comm	_BNXT_REDIRECT_EVENT,4,2        ; @BNXT_REDIRECT_EVENT
	.comm	_BNXT_TX_EVENT,4,2              ; @BNXT_TX_EVENT
	.no_dead_strip	___bnxt_poll_work
.subsections_via_symbols
