	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_change_mtu
_ibmveth_change_mtu:                    ## @ibmveth_change_mtu
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rsi
	movq	_IBMVETH_BUFF_OH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	%r14d, %r15d
	movq	_IBMVETH_NUM_BUFF_POOLS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.7:
	movq	8(%rbx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rdx,%rcx,8), %r15d
	jle	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
	jmp	LBB0_17
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%eax, %ecx
	jne	LBB0_3
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_netif_running
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, (%rbx)
	movl	4(%rbx), %edi
	callq	_ibmveth_close
	movl	$0, (%rbx)
LBB0_5:
	cmpl	$0, (%r13)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_15
## %bb.6:
	movq	8(%rbx), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, 4(%rax,%rcx,8)
	cmpl	(%rax,%rcx,8), %r15d
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rcx
	movslq	(%r13), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_11
LBB0_15:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movl	4(%rbx), %edi
	callq	_ibmveth_open
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_17
LBB0_12:
	movl	%r14d, (%r12)
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_ibmveth_get_desired_dma
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_vio_cmo_set_dev_desired
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.14:
	movl	4(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmveth_open                   ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVETH_BUFF_OH,4,2            ## @IBMVETH_BUFF_OH
	.comm	_IBMVETH_NUM_BUFF_POOLS,4,2     ## @IBMVETH_NUM_BUFF_POOLS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ibmveth_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_change_mtu
_ibmveth_change_mtu:                    ; @ibmveth_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x8, _IBMVETH_BUFF_OH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBMVETH_BUFF_OH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w24, w8, w20
Lloh3:
	adrp	x25, _IBMVETH_NUM_BUFF_POOLS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IBMVETH_NUM_BUFF_POOLS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w24, w11
	b.le	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x10, x10, #8
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w9, #0
LBB0_5:
	cmp	w9, w8
	b.ne	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_netif_running
	mov	x23, x0
	cbz	x0, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	bl	_ibmveth_close
	str	wzr, [x19]
LBB0_10:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x8, #0
	ldr	x9, [x19, #8]
	add	x9, x9, #4
	mov	w10, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x9]
	ldur	w11, [x9, #-4]
	cmp	w24, w11
	b.le	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	ldrsw	x11, [x25]
	add	x9, x9, #8
	cmp	x8, x11
	b.lt	LBB0_12
LBB0_14:
	cbz	x23, LBB0_6
; %bb.15:
	ldr	w0, [x19, #4]
	bl	_ibmveth_open
	cbnz	w0, LBB0_7
	b	LBB0_6
LBB0_16:
	str	w20, [x21]
	mov	x0, x22
	bl	_ibmveth_get_desired_dma
	mov	x1, x0
	mov	x0, x22
	bl	_vio_cmo_set_dev_desired
	cbz	x23, LBB0_18
; %bb.17:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ibmveth_open
LBB0_18:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVETH_BUFF_OH,4,2            ; @IBMVETH_BUFF_OH
	.comm	_IBMVETH_NUM_BUFF_POOLS,4,2     ; @IBMVETH_NUM_BUFF_POOLS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ibmveth_change_mtu
.subsections_via_symbols
