	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_set_tso
_ibmveth_set_tso:                       ## @ibmveth_set_tso
	.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, %r15d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_netif_running
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, (%r13)
	movq	%r12, %rdi
	callq	_ibmveth_close
	movl	$0, (%r13)
LBB0_2:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	movq	_IBMVETH_ILLAN_LRG_SR_ENABLED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	$0, %r14d
	cmoveq	%rbx, %r14
	cmoveq	%rax, %rbx
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_h_illan_attributes
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	movq	_IBMVETH_ILLAN_LRG_SND_SUPPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -48(%rbp)
	je	LBB0_10
## %bb.4:
	movq	_old_large_send@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.5:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_h_illan_attributes
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.9:
	movl	%r15d, 4(%r13)
	jmp	LBB0_12
LBB0_10:
	cmpl	$1, %r15d
	jne	LBB0_12
## %bb.11:
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_info
LBB0_12:
	movl	%r15d, 8(%r13)
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
LBB0_15:
	movq	%r12, %rdi
	callq	_ibmveth_open
	jmp	LBB0_16
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_netdev_err
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_h_illan_attributes
	cmpl	$1, %r15d
	jne	LBB0_8
## %bb.7:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r12)
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_16:
	testl	%ebx, %ebx
	cmovnel	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVETH_ILLAN_LRG_SR_ENABLED,8,3 ## @IBMVETH_ILLAN_LRG_SR_ENABLED
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.comm	_IBMVETH_ILLAN_LRG_SND_SUPPORT,8,3 ## @IBMVETH_ILLAN_LRG_SND_SUPPORT
	.comm	_old_large_send,4,2             ## @old_large_send
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to change tso settings. %d rc=%ld\n"

	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"TSO feature requires all partitions to have updated driver"

	.no_dead_strip	_ibmveth_set_tso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_set_tso
_ibmveth_set_tso:                       ; @ibmveth_set_tso
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x19
	bl	_netif_running
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x19
	bl	_ibmveth_close
	str	wzr, [x22]
LBB0_2:
Lloh0:
	adrp	x8, _IBMVETH_ILLAN_LRG_SR_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBMVETH_ILLAN_LRG_SR_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w21, #0
	csel	x23, x8, xzr, eq
	csel	x24, xzr, x8, eq
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	add	x3, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_h_illan_attributes
Lloh3:
	adrp	x25, _H_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _H_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, _IBMVETH_ILLAN_LRG_SND_SUPPORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IBMVETH_ILLAN_LRG_SND_SUPPORT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	and	x8, x9, x8
Lloh8:
	adrp	x9, _old_large_send@GOTPAGE
Lloh9:
	ldr	x9, [x9, _old_large_send@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_9
LBB0_4:
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _NETIF_F_TSO6@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_6:
	mov	w23, #0
LBB0_7:
	str	w21, [x22, #8]
	cbz	x20, LBB0_14
LBB0_8:
	mov	x0, x19
	bl	_ibmveth_open
	b	LBB0_15
LBB0_9:
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	add	x3, sp, #8
	mov	x1, x23
	mov	x2, x24
	bl	_h_illan_attributes
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	w23, #0
	str	w21, [x22, #4]
	b	LBB0_7
LBB0_11:
	mov	x3, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_err
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	add	x3, sp, #8
	mov	x1, x24
	mov	x2, x23
	bl	_h_illan_attributes
	cmp	w21, #1
	b.ne	LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh20:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_13:
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w23, w8
	cbnz	x20, LBB0_8
LBB0_14:
	mov	w0, #0
LBB0_15:
	cmp	w23, #0
	csel	w0, w0, w23, eq
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVETH_ILLAN_LRG_SR_ENABLED,8,3 ; @IBMVETH_ILLAN_LRG_SR_ENABLED
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.comm	_IBMVETH_ILLAN_LRG_SND_SUPPORT,8,3 ; @IBMVETH_ILLAN_LRG_SND_SUPPORT
	.comm	_old_large_send,4,2             ; @old_large_send
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to change tso settings. %d rc=%ld\n"

	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"TSO feature requires all partitions to have updated driver"

	.no_dead_strip	_ibmveth_set_tso
.subsections_via_symbols
