	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_change_param_reset
_do_change_param_reset:                 ## @do_change_param_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	24(%rdi), %r14
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movl	(%rbx), %eax
	movl	%eax, 32(%r13)
	movq	%r14, %rdi
	callq	_ibmvnic_cleanup
	movq	_VNIC_OPEN@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	___ibmvnic_close
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
LBB0_2:
	movq	%r13, %rdi
	callq	_release_resources
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_release_sub_crqs
	movq	%r13, %rdi
	callq	_release_crq_queue
	movq	_VNIC_PROBED@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 16(%r13)
	movq	%r13, %rdi
	callq	_init_crq_queue
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movq	24(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_18
LBB0_4:
	movq	%r13, %rdi
	callq	_ibmvnic_reset_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_IBMVNIC_INIT_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_18
LBB0_6:
	cmpq	%r15, (%rbx)
	jne	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_8:
	movq	%r14, %rdi
	callq	_ibmvnic_login
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	%r15, 16(%r13)
	jmp	LBB0_18
LBB0_10:
	movq	%r13, %rdi
	callq	_init_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_11
LBB0_18:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r13, %rdi
	callq	_ibmvnic_disable_irqs
	movq	_VNIC_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	cmpq	%r15, %rax
	je	LBB0_7
## %bb.13:
	movq	%r14, %rdi
	callq	___ibmvnic_open
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_IBMVNIC_OPEN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_18
LBB0_15:
	movq	%r14, %rdi
	callq	_ibmvnic_set_multi
	cmpl	$0, (%r13)
	movl	$0, %r12d
	jle	LBB0_18
## %bb.16:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	callq	_napi_schedule
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change param resetting driver (%d)\n"

	.comm	_VNIC_OPEN,8,3                  ## @VNIC_OPEN
	.comm	_VNIC_PROBED,8,3                ## @VNIC_PROBED
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't initialize crq. rc=%d\n"

	.comm	_IBMVNIC_INIT_FAILED,4,2        ## @IBMVNIC_INIT_FAILED
	.comm	_VNIC_CLOSED,8,3                ## @VNIC_CLOSED
	.comm	_IBMVNIC_OPEN_FAILED,4,2        ## @IBMVNIC_OPEN_FAILED
	.no_dead_strip	_do_change_param_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_change_param_reset
_do_change_param_reset:                 ; @do_change_param_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w2, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	w8, [x22]
	str	w8, [x19, #32]
	mov	x0, x20
	bl	_ibmvnic_cleanup
Lloh2:
	adrp	x8, _VNIC_OPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VNIC_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	___ibmvnic_close
	mov	x22, x0
	cbnz	w0, LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_release_resources
	mov	x0, x19
	mov	w1, #1
	bl	_release_sub_crqs
	mov	x0, x19
	bl	_release_crq_queue
Lloh5:
	adrp	x23, _VNIC_PROBED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VNIC_PROBED@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_init_crq_queue
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	x0, [x19, #24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_ibmvnic_reset_init
	cbz	w0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _IBMVNIC_INIT_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IBMVNIC_INIT_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x23]
	cmp	x8, x21
	b.ne	LBB0_8
LBB0_7:
	mov	w22, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_ibmvnic_login
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	str	x21, [x19, #16]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_init_resources
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_ibmvnic_disable_irqs
Lloh12:
	adrp	x8, _VNIC_CLOSED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VNIC_CLOSED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	cmp	x8, x21
	b.eq	LBB0_7
; %bb.13:
	mov	x0, x20
	bl	___ibmvnic_open
	cbz	w0, LBB0_15
; %bb.14:
Lloh15:
	adrp	x8, _IBMVNIC_OPEN_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IBMVNIC_OPEN_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	b	LBB0_11
LBB0_15:
	mov	x0, x20
	bl	_ibmvnic_set_multi
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.16:
	mov	x20, #0
	mov	x21, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_napi_schedule
	mov	w22, #0
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_17
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change param resetting driver (%d)\n"

	.comm	_VNIC_OPEN,8,3                  ; @VNIC_OPEN
	.comm	_VNIC_PROBED,8,3                ; @VNIC_PROBED
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't initialize crq. rc=%d\n"

	.comm	_IBMVNIC_INIT_FAILED,4,2        ; @IBMVNIC_INIT_FAILED
	.comm	_VNIC_CLOSED,8,3                ; @VNIC_CLOSED
	.comm	_IBMVNIC_OPEN_FAILED,4,2        ; @IBMVNIC_OPEN_FAILED
	.no_dead_strip	_do_change_param_reset
.subsections_via_symbols
