	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_process_kill
_bnx2x_process_kill:                    ## @bnx2x_process_kill
	.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	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	$0, -56(%rbp)
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$1001, %r14d                    ## imm = 0x3E9
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decl	%r14d
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PXP2_REG_RD_SR_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, %r15d
	movq	_PXP2_REG_RD_BLK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, %r12d
	movq	_PXP2_REG_RD_PORT_IS_IDLE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, %r13d
	movq	_PXP2_REG_RD_PORT_IS_IDLE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PXP2_REG_PGL_EXP_ROM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PGLUE_B_REG_TAGS_63_32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$126, %r15d
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$160, %r12d
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	andl	$1, %eax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, -48(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_1
LBB0_11:
	cmpl	$1, %r14d
	jne	LBB0_16
## %bb.12:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$160, %r12d
	movl	$126, %r15d
LBB0_13:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	callq	_barrier
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bnx2x_set_234_gates
	movq	%rbx, %rdi
	callq	_CHIP_IS_E1x
	testl	%eax, %eax
	je	LBB0_24
LBB0_17:
	movq	_MISC_REG_UNPREPARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	xorl	%eax, %eax
	callq	_barrier
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_reset_mcp_prep
LBB0_19:
	movq	%rbx, %rdi
	callq	_bnx2x_pxp_prep
	xorl	%eax, %eax
	callq	_barrier
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bnx2x_process_kill_chip_reset
	xorl	%eax, %eax
	callq	_barrier
	movq	%rbx, %rdi
	callq	_CHIP_IS_E1x
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	_PGLUE_B_REG_LATCHED_ERRORS_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$127, %edx
	callq	_REG_WR
LBB0_21:
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.22:
	movl	-56(%rbp), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_reset_mcp_comp
	testq	%rax, %rax
	jne	LBB0_25
LBB0_23:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_234_gates
	jmp	LBB0_15
LBB0_24:
	movq	%rbx, %rdi
	callq	_bnx2x_er_poll_igu_vq
	testq	%rax, %rax
	je	LBB0_17
LBB0_25:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PXP2_REG_RD_SR_CNT,4,2         ## @PXP2_REG_RD_SR_CNT
	.comm	_PXP2_REG_RD_BLK_CNT,4,2        ## @PXP2_REG_RD_BLK_CNT
	.comm	_PXP2_REG_RD_PORT_IS_IDLE_0,4,2 ## @PXP2_REG_RD_PORT_IS_IDLE_0
	.comm	_PXP2_REG_RD_PORT_IS_IDLE_1,4,2 ## @PXP2_REG_RD_PORT_IS_IDLE_1
	.comm	_PXP2_REG_PGL_EXP_ROM2,4,2      ## @PXP2_REG_PGL_EXP_ROM2
	.comm	_PGLUE_B_REG_TAGS_63_32,4,2     ## @PGLUE_B_REG_TAGS_63_32
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tetris buffer didn't get empty or there are still outstanding read requests after 1s!\n"

L_.str.1:                               ## @.str.1
	.asciz	"sr_cnt=0x%08x, blk_cnt=0x%08x, port_is_idle_0=0x%08x, port_is_idle_1=0x%08x, pgl_exp_rom2=0x%08x\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MISC_REG_UNPREPARED,4,2        ## @MISC_REG_UNPREPARED
	.comm	_PGLUE_B_REG_LATCHED_ERRORS_CLR,4,2 ## @PGLUE_B_REG_LATCHED_ERRORS_CLR
	.no_dead_strip	_bnx2x_process_kill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_process_kill
_bnx2x_process_kill:                    ; @bnx2x_process_kill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	w1, wzr, [sp, #40]              ; 4-byte Folded Spill
	mov	x19, x0
	mov	w24, #0
	mov	w27, #1001
Lloh0:
	adrp	x20, _PXP2_REG_RD_PORT_IS_IDLE_1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PXP2_REG_RD_PORT_IS_IDLE_1@GOTPAGEOFF]
Lloh2:
	adrp	x28, _PXP2_REG_PGL_EXP_ROM2@GOTPAGE
Lloh3:
	ldr	x28, [x28, _PXP2_REG_PGL_EXP_ROM2@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	w27, w27, #1
	b.eq	LBB0_12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh4:
	adrp	x8, _PXP2_REG_RD_SR_CNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PXP2_REG_RD_SR_CNT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
	mov	x21, x0
Lloh7:
	adrp	x8, _PXP2_REG_RD_BLK_CNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PXP2_REG_RD_BLK_CNT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
	mov	x22, x0
Lloh10:
	adrp	x8, _PXP2_REG_RD_PORT_IS_IDLE_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PXP2_REG_RD_PORT_IS_IDLE_0@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
	mov	x23, x0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_RD
	mov	x25, x0
	ldr	w1, [x28]
	mov	x0, x19
	bl	_REG_RD
	mov	x26, x0
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh13:
	adrp	x8, _PGLUE_B_REG_TAGS_63_32@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PGLUE_B_REG_TAGS_63_32@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
	mov	x24, x0
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #126
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w23, #0x1
	cmp	w22, #160
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w25, #0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w26, #1
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w24, #1
	b.ne	LBB0_1
LBB0_10:
	cmp	w27, #1
	b.ne	LBB0_15
; %bb.11:
	mov	w26, #-1
	mov	w22, #160
	mov	w21, #126
LBB0_12:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	stp	x25, x26, [sp, #24]
	stp	x22, x23, [sp, #8]
	str	x21, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
LBB0_13:
Lloh20:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	bl	_barrier
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2x_set_234_gates
	mov	x0, x19
	bl	_CHIP_IS_E1x
	cbz	w0, LBB0_23
LBB0_16:
Lloh23:
	adrp	x8, _MISC_REG_UNPREPARED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MISC_REG_UNPREPARED@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WR
	bl	_barrier
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w20, [sp, #40]                  ; 4-byte Folded Reload
	cbz	w20, LBB0_18
; %bb.17:
	add	x1, sp, #44
	mov	x0, x19
	bl	_bnx2x_reset_mcp_prep
LBB0_18:
	mov	x0, x19
	bl	_bnx2x_pxp_prep
	bl	_barrier
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_process_kill_chip_reset
	bl	_barrier
	mov	x0, x19
	bl	_CHIP_IS_E1x
	cbnz	w0, LBB0_20
; %bb.19:
Lloh26:
	adrp	x8, _PGLUE_B_REG_LATCHED_ERRORS_CLR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PGLUE_B_REG_LATCHED_ERRORS_CLR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #127
	bl	_REG_WR
LBB0_20:
	cbz	w20, LBB0_22
; %bb.21:
	ldr	w1, [sp, #44]
	mov	x0, x19
	bl	_bnx2x_reset_mcp_comp
	cbnz	x0, LBB0_13
LBB0_22:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2x_set_234_gates
	mov	w0, #0
	b	LBB0_14
LBB0_23:
	mov	x0, x19
	bl	_bnx2x_er_poll_igu_vq
	cbnz	x0, LBB0_13
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PXP2_REG_RD_SR_CNT,4,2         ; @PXP2_REG_RD_SR_CNT
	.comm	_PXP2_REG_RD_BLK_CNT,4,2        ; @PXP2_REG_RD_BLK_CNT
	.comm	_PXP2_REG_RD_PORT_IS_IDLE_0,4,2 ; @PXP2_REG_RD_PORT_IS_IDLE_0
	.comm	_PXP2_REG_RD_PORT_IS_IDLE_1,4,2 ; @PXP2_REG_RD_PORT_IS_IDLE_1
	.comm	_PXP2_REG_PGL_EXP_ROM2,4,2      ; @PXP2_REG_PGL_EXP_ROM2
	.comm	_PGLUE_B_REG_TAGS_63_32,4,2     ; @PGLUE_B_REG_TAGS_63_32
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tetris buffer didn't get empty or there are still outstanding read requests after 1s!\n"

l_.str.1:                               ; @.str.1
	.asciz	"sr_cnt=0x%08x, blk_cnt=0x%08x, port_is_idle_0=0x%08x, port_is_idle_1=0x%08x, pgl_exp_rom2=0x%08x\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MISC_REG_UNPREPARED,4,2        ; @MISC_REG_UNPREPARED
	.comm	_PGLUE_B_REG_LATCHED_ERRORS_CLR,4,2 ; @PGLUE_B_REG_LATCHED_ERRORS_CLR
	.no_dead_strip	_bnx2x_process_kill
.subsections_via_symbols
