	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_hard_reset
_do_hard_reset:                         ## @do_hard_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, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_dbg
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movl	(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_ibmvnic_cleanup
	movq	%rbx, %rdi
	callq	_release_resources
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_release_sub_crqs
	movq	%rbx, %rdi
	callq	_release_crq_queue
	movq	_VNIC_PROBED@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	leaq	16(%rbx), %rdi
	callq	_reinit_completion
	movq	%rbx, %rdi
	callq	_init_crq_queue
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, %rdi
	callq	_ibmvnic_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	xorl	%r12d, %r12d
	cmpq	%r14, (%r13)
	je	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	callq	_ibmvnic_login
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_init_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_ibmvnic_disable_irqs
	movq	_VNIC_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	$0, %r12d
	cmpq	%r14, (%rax)
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	___ibmvnic_open
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_IBMVNIC_OPEN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hard resetting driver (%d)\n"

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

	.comm	_VNIC_CLOSED,8,3                ## @VNIC_CLOSED
	.comm	_IBMVNIC_OPEN_FAILED,4,2        ## @IBMVNIC_OPEN_FAILED
	.no_dead_strip	_do_hard_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_hard_reset
_do_hard_reset:                         ; @do_hard_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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w2, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w8, [x22]
	str	w8, [x20, #20]
	mov	x0, x19
	bl	_ibmvnic_cleanup
	mov	x0, x20
	bl	_release_resources
	mov	x0, x20
	mov	w1, #0
	bl	_release_sub_crqs
	mov	x0, x20
	bl	_release_crq_queue
Lloh2:
	adrp	x23, _VNIC_PROBED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VNIC_PROBED@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x20]
	add	x0, x20, #16
	bl	_reinit_completion
	mov	x0, x20
	bl	_init_crq_queue
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x0, [x20, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_10
LBB0_2:
	mov	x0, x20
	bl	_ibmvnic_init
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	x8, [x23]
	cmp	x8, x21
	b.ne	LBB0_5
LBB0_4:
	mov	w22, #0
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_ibmvnic_login
	cbz	w0, LBB0_7
; %bb.6:
	mov	w22, #0
	ldr	x8, [x23]
	str	x8, [x20]
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_init_resources
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_ibmvnic_disable_irqs
Lloh6:
	adrp	x8, _VNIC_CLOSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VNIC_CLOSED@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x20]
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_4
; %bb.9:
	mov	x0, x19
	bl	___ibmvnic_open
Lloh8:
	adrp	x8, _IBMVNIC_OPEN_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IBMVNIC_OPEN_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, wzr, w8, eq
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hard resetting driver (%d)\n"

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

	.comm	_VNIC_CLOSED,8,3                ; @VNIC_CLOSED
	.comm	_IBMVNIC_OPEN_FAILED,4,2        ; @IBMVNIC_OPEN_FAILED
	.no_dead_strip	_do_hard_reset
.subsections_via_symbols
