	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_close
_ibmveth_close:                         ## @ibmveth_close
	.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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	leaq	28(%r15), %rdi
	callq	_napi_disable
	cmpl	$0, 24(%r15)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_2:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movq	_VIO_IRQ_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_h_vio_signal
	movq	_H_BUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_h_free_logical_lan
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r12), %rbx
	je	LBB0_3
## %bb.5:
	movq	_H_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_netdev_err
LBB0_7:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	(%r15), %rax
	movl	4088(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_ibmveth_cleanup
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close starting\n"

	.comm	_VIO_IRQ_DISABLE,4,2            ## @VIO_IRQ_DISABLE
	.comm	_H_BUSY,8,3                     ## @H_BUSY
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"h_free_logical_lan failed with %lx, continuing with close\n"

L_.str.2:                               ## @.str.2
	.asciz	"close complete\n"

	.no_dead_strip	_ibmveth_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_close
_ibmveth_close:                         ; @ibmveth_close
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	add	x0, x20, #28
	bl	_napi_disable
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_2:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _VIO_IRQ_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VIO_IRQ_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_h_vio_signal
Lloh5:
	adrp	x22, _H_BUSY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _H_BUSY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_h_free_logical_lan
	mov	x21, x0
	bl	_H_IS_LONG_BUSY
	ldr	x8, [x22]
	cmp	x0, #0
	ccmp	x21, x8, #4, eq
	b.eq	LBB0_3
; %bb.4:
Lloh7:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_err
LBB0_6:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x20]
	ldr	w8, [x8, #4088]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_ibmveth_cleanup
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close starting\n"

	.comm	_VIO_IRQ_DISABLE,4,2            ; @VIO_IRQ_DISABLE
	.comm	_H_BUSY,8,3                     ; @H_BUSY
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"h_free_logical_lan failed with %lx, continuing with close\n"

l_.str.2:                               ; @.str.2
	.asciz	"close complete\n"

	.no_dead_strip	_ibmveth_close
.subsections_via_symbols
