	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ibmvnic_open
___ibmvnic_open:                        ## @__ibmvnic_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	%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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %r13d
	movq	_VNIC_OPENING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_replenish_pools
	movq	%r12, %rdi
	callq	_ibmvnic_napi_enable
	cmpl	$0, 4(%r12)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_VNIC_CLOSED@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_enable_scrq_irq
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_dbg
	cmpl	(%r15), %r13d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_enable_irq
	jmp	LBB0_4
LBB0_5:
	cmpl	$0, 8(%r12)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_VNIC_CLOSED@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_enable_scrq_irq
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_dbg
	cmpl	(%r15), %r13d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_enable_irq
	jmp	LBB0_9
LBB0_10:
	movq	_IBMVNIC_LOGICAL_LNK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_set_link_state
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	cmpl	$0, 4(%r12)
	jle	LBB0_14
## %bb.12:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r14, %rdi
	callq	_napi_disable
	incq	%rbx
	movslq	4(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	callq	_release_resources
	jmp	LBB0_20
LBB0_15:
	movq	%r14, %rdi
	callq	_netif_tx_start_all_queues
	movq	_VNIC_CLOSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_19
## %bb.16:
	cmpl	$0, 4(%r12)
	jle	LBB0_19
## %bb.17:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r14, %rdi
	callq	_napi_schedule
	incq	%rbx
	movslq	4(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_19:
	movq	_VNIC_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VNIC_OPENING,4,2               ## @VNIC_OPENING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling rx_scrq[%d] irq\n"

	.comm	_VNIC_CLOSED,4,2                ## @VNIC_CLOSED
L_.str.1:                               ## @.str.1
	.asciz	"Enabling tx_scrq[%d] irq\n"

	.comm	_IBMVNIC_LOGICAL_LNK_UP,4,2     ## @IBMVNIC_LOGICAL_LNK_UP
	.comm	_VNIC_OPEN,4,2                  ## @VNIC_OPEN
	.no_dead_strip	___ibmvnic_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ibmvnic_open
___ibmvnic_open:                        ; @__ibmvnic_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _VNIC_OPENING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VNIC_OPENING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_replenish_pools
	mov	x0, x19
	bl	_ibmvnic_napi_enable
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x24, _VNIC_CLOSED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _VNIC_CLOSED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_enable_scrq_irq
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_dbg
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_enable_irq
	b	LBB0_2
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh9:
	adrp	x24, _VNIC_CLOSED@GOTPAGE
Lloh10:
	ldr	x24, [x24, _VNIC_CLOSED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #24]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_enable_scrq_irq
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	cmp	x21, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_dbg
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_enable_irq
	b	LBB0_7
LBB0_10:
Lloh11:
	adrp	x8, _IBMVNIC_LOGICAL_LNK_UP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IBMVNIC_LOGICAL_LNK_UP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_link_state
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.11:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x20, #0
	mov	x22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_napi_disable
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	add	x20, x20, #4
	cmp	x22, x8
	b.lt	LBB0_13
LBB0_14:
	mov	x0, x19
	bl	_release_resources
	b	LBB0_20
LBB0_15:
	mov	x0, x20
	bl	_netif_tx_start_all_queues
Lloh14:
	adrp	x8, _VNIC_CLOSED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VNIC_CLOSED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_19
; %bb.16:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x20, #0
	mov	x22, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_napi_schedule
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	add	x20, x20, #4
	cmp	x22, x8
	b.lt	LBB0_18
LBB0_19:
Lloh17:
	adrp	x8, _VNIC_OPEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VNIC_OPEN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_20:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VNIC_OPENING,4,2               ; @VNIC_OPENING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling rx_scrq[%d] irq\n"

	.comm	_VNIC_CLOSED,4,2                ; @VNIC_CLOSED
l_.str.1:                               ; @.str.1
	.asciz	"Enabling tx_scrq[%d] irq\n"

	.comm	_IBMVNIC_LOGICAL_LNK_UP,4,2     ; @IBMVNIC_LOGICAL_LNK_UP
	.comm	_VNIC_OPEN,4,2                  ; @VNIC_OPEN
	.no_dead_strip	___ibmvnic_open
.subsections_via_symbols
