	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_open
_gve_open:                              ## @gve_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_gve_alloc_qpls
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	callq	_gve_alloc_rings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_tx_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_rx_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movq	%r15, %rdi
	callq	_gve_free_rings
LBB0_8:
	movq	%r15, %rdi
	callq	_gve_free_qpls
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_gve_register_qpls
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_gve_create_rings
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:
	movq	%r15, %rdi
	callq	_gve_get_reset_in_progress
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_gve_reset_and_teardown
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gve_reset_recovery
	jmp	LBB0_11
LBB0_6:
	movq	%r15, %rdi
	callq	_gve_set_device_rings_ok
	movq	%r15, %rdi
	callq	_gve_turnup
	movq	%r14, %rdi
	callq	_netif_carrier_on
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gve_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_open
_gve_open:                              ; @gve_open
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_gve_alloc_qpls
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_gve_alloc_rings
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_netif_set_real_num_tx_queues
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_netif_set_real_num_rx_queues
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_gve_free_rings
LBB0_5:
	mov	x0, x19
	bl	_gve_free_qpls
LBB0_6:
	mov	x0, x21
	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_7:
	mov	x0, x19
	bl	_gve_register_qpls
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_gve_create_rings
	mov	x21, x0
	cbz	w0, LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_gve_get_reset_in_progress
	cbnz	x0, LBB0_6
; %bb.10:
	mov	x0, x19
	mov	w1, #1
	bl	_gve_reset_and_teardown
	mov	x0, x19
	mov	w1, #0
	bl	_gve_reset_recovery
	b	LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_gve_set_device_rings_ok
	mov	x0, x19
	bl	_gve_turnup
	mov	x0, x20
	bl	_netif_carrier_on
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gve_open
.subsections_via_symbols
