	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_set_tso
_ipoib_set_tso:                         ## @ipoib_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	_IPOIB_FLAG_ADMIN_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$4, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ipoib_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_7
LBB0_2:
	movl	(%r14), %eax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_IB_DEVICE_UD_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_FLAG_ADMIN_CM,4,2        ## @IPOIB_FLAG_ADMIN_CM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_IB_DEVICE_UD_TSO,4,2           ## @IB_DEVICE_UD_TSO
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't set TSO on\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ipoib_set_tso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_set_tso
_ipoib_set_tso:                         ; @ipoib_set_tso
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	cbz	x21, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _IPOIB_FLAG_ADMIN_CM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPOIB_FLAG_ADMIN_CM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_bit
	cbz	w0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ipoib_warn
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	w0, #0
Lloh8:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:
	ldr	w9, [x20]
Lloh14:
	adrp	x10, _IB_DEVICE_UD_TSO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_DEVICE_UD_TSO@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.6:
	mov	w0, #0
Lloh17:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_7:
	str	w8, [x19]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_FLAG_ADMIN_CM,4,2        ; @IPOIB_FLAG_ADMIN_CM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_IB_DEVICE_UD_TSO,4,2           ; @IB_DEVICE_UD_TSO
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't set TSO on\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ipoib_set_tso
.subsections_via_symbols
