	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_set_dev_features         ## -- Begin function ipoib_set_dev_features
	.p2align	4, 0x90
_ipoib_set_dev_features:                ## @ipoib_set_dev_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rsi), %ecx
	movl	%ecx, (%rdi)
	movq	8(%rdi), %rax
	movq	$0, (%rax)
	movq	_IB_DEVICE_UD_IP_CSUM@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_IPOIB_FLAG_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_set_bit
	movq	_CSUM_IP@GOTPCREL(%rip), %rax
	movq	_CSUM_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CSUM_UDP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	movq	_IFCAP_HWCSUM@GOTPCREL(%rip), %rdx
	movq	_IFCAP_VLAN_HWCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_IFCAP_VLAN_HWTAGGING@GOTPCREL(%rip), %rdx
	movq	_IFCAP_VLAN_MTU@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_IFCAP_LINKSTATE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	orl	%ecx, %esi
	movl	%esi, 4(%rax)
	movl	%esi, 12(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_DEVICE_UD_IP_CSUM,4,2       ## @IB_DEVICE_UD_IP_CSUM
	.comm	_IPOIB_FLAG_CSUM,4,2            ## @IPOIB_FLAG_CSUM
	.comm	_CSUM_IP,4,2                    ## @CSUM_IP
	.comm	_CSUM_TCP,4,2                   ## @CSUM_TCP
	.comm	_CSUM_UDP,4,2                   ## @CSUM_UDP
	.comm	_IFCAP_HWCSUM,4,2               ## @IFCAP_HWCSUM
	.comm	_IFCAP_VLAN_HWCSUM,4,2          ## @IFCAP_VLAN_HWCSUM
	.comm	_IFCAP_VLAN_HWTAGGING,4,2       ## @IFCAP_VLAN_HWTAGGING
	.comm	_IFCAP_VLAN_MTU,4,2             ## @IFCAP_VLAN_MTU
	.comm	_IFCAP_LINKSTATE,4,2            ## @IFCAP_LINKSTATE
	.comm	_CSUM_TSO,4,2                   ## @CSUM_TSO
	.comm	_IB_DEVICE_UD_TSO,4,2           ## @IB_DEVICE_UD_TSO
	.comm	_IFCAP_TSO4,4,2                 ## @IFCAP_TSO4
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_set_dev_features         ; -- Begin function ipoib_set_dev_features
	.p2align	2
_ipoib_set_dev_features:                ; @ipoib_set_dev_features
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w9, [x1]
	str	w9, [x0]
	ldr	x8, [x0, #8]
	str	xzr, [x8]
Lloh0:
	adrp	x10, _IB_DEVICE_UD_IP_CSUM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IB_DEVICE_UD_IP_CSUM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IPOIB_FLAG_CSUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPOIB_FLAG_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_set_bit
Lloh6:
	adrp	x8, _CSUM_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSUM_IP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CSUM_TCP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CSUM_TCP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _CSUM_UDP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CSUM_UDP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w9, w8, w9
	ldr	x8, [x19, #8]
	str	w9, [x8]
Lloh15:
	adrp	x9, _IFCAP_HWCSUM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IFCAP_HWCSUM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _IFCAP_VLAN_HWCSUM@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IFCAP_VLAN_HWCSUM@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #4]
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
Lloh21:
	adrp	x10, _IFCAP_VLAN_HWTAGGING@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IFCAP_VLAN_HWTAGGING@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _IFCAP_VLAN_MTU@GOTPAGE
Lloh25:
	ldr	x11, [x11, _IFCAP_VLAN_MTU@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh27:
	adrp	x11, _IFCAP_LINKSTATE@GOTPAGE
Lloh28:
	ldr	x11, [x11, _IFCAP_LINKSTATE@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w10, w10, w11
	orr	w9, w10, w9
	str	w9, [x8, #4]
	str	w9, [x8, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_DEVICE_UD_IP_CSUM,4,2       ; @IB_DEVICE_UD_IP_CSUM
	.comm	_IPOIB_FLAG_CSUM,4,2            ; @IPOIB_FLAG_CSUM
	.comm	_CSUM_IP,4,2                    ; @CSUM_IP
	.comm	_CSUM_TCP,4,2                   ; @CSUM_TCP
	.comm	_CSUM_UDP,4,2                   ; @CSUM_UDP
	.comm	_IFCAP_HWCSUM,4,2               ; @IFCAP_HWCSUM
	.comm	_IFCAP_VLAN_HWCSUM,4,2          ; @IFCAP_VLAN_HWCSUM
	.comm	_IFCAP_VLAN_HWTAGGING,4,2       ; @IFCAP_VLAN_HWTAGGING
	.comm	_IFCAP_VLAN_MTU,4,2             ; @IFCAP_VLAN_MTU
	.comm	_IFCAP_LINKSTATE,4,2            ; @IFCAP_LINKSTATE
	.comm	_CSUM_TSO,4,2                   ; @CSUM_TSO
	.comm	_IB_DEVICE_UD_TSO,4,2           ; @IB_DEVICE_UD_TSO
	.comm	_IFCAP_TSO4,4,2                 ; @IFCAP_TSO4
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
.subsections_via_symbols
