	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_change_ring_size
_bnx2_change_ring_size:                 ## @bnx2_change_ring_size
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_bnx2_save_stats
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bnx2_netif_stop
	movq	_BNX2_DRV_MSG_CODE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bnx2_reset_chip
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	callq	_bnx2_free_irq
	movq	%rbx, %rdi
	callq	_bnx2_del_napi
	jmp	LBB0_4
LBB0_3:
	callq	___bnx2_free_irq
LBB0_4:
	movq	%rbx, %rdi
	callq	_bnx2_free_skbs
	movq	%rbx, %rdi
	callq	_bnx2_free_mem
LBB0_5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_bnx2_set_rx_ring_size
	movl	%r15d, 12(%rbx)
	movl	8(%rbx), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	_disable_msi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bnx2_setup_int_mode
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bnx2_init_napi
	testl	%r14d, %r14d
	jne	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_bnx2_alloc_mem
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_bnx2_request_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnx2_init_nic
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	_bnx2_napi_enable
	movl	8(%rbx), %edi
	callq	_dev_close
	movl	%r14d, %r15d
	jmp	LBB0_14
LBB0_6:
	xorl	%r15d, %r15d
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bnx2_netif_start
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_DRV_MSG_CODE_RESET,4,2    ## @BNX2_DRV_MSG_CODE_RESET
	.comm	_disable_msi,4,2                ## @disable_msi
	.comm	_CNIC_DRV_STATE_REGD,4,2        ## @CNIC_DRV_STATE_REGD
	.no_dead_strip	_bnx2_change_ring_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_change_ring_size
_bnx2_change_ring_size:                 ; @bnx2_change_ring_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_netif_running
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_bnx2_save_stats
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2_netif_stop
Lloh0:
	adrp	x8, _BNX2_DRV_MSG_CODE_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_DRV_MSG_CODE_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_reset_chip
	mov	x0, x19
	cbz	w20, LBB0_3
; %bb.2:
	bl	_bnx2_free_irq
	mov	x0, x19
	bl	_bnx2_del_napi
	b	LBB0_4
LBB0_3:
	bl	___bnx2_free_irq
LBB0_4:
	mov	x0, x19
	bl	_bnx2_free_skbs
	mov	x0, x19
	bl	_bnx2_free_mem
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2_set_rx_ring_size
	str	w21, [x19, #12]
	ldr	w0, [x19, #8]
	bl	_netif_running
	cbz	x0, LBB0_12
; %bb.6:
	cbz	w20, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _disable_msi@GOTPAGE
Lloh4:
	ldr	x8, [x8, _disable_msi@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_setup_int_mode
	mov	x20, x0
	mov	x0, x19
	bl	_bnx2_init_napi
	cbnz	w20, LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_bnx2_alloc_mem
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_bnx2_request_irq
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2_init_nic
	mov	x20, x0
	cbz	w0, LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_bnx2_napi_enable
	ldr	w0, [x19, #8]
	bl	_dev_close
	b	LBB0_13
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2_netif_start
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_DRV_MSG_CODE_RESET,4,2    ; @BNX2_DRV_MSG_CODE_RESET
	.comm	_disable_msi,4,2                ; @disable_msi
	.comm	_CNIC_DRV_STATE_REGD,4,2        ; @CNIC_DRV_STATE_REGD
	.no_dead_strip	_bnx2_change_ring_size
.subsections_via_symbols
