	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_tunnel_offload_mode
_choose_tunnel_offload_mode:            ## @choose_tunnel_offload_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.2:
	movq	_MLX4_TUNNEL_OFFLOAD_MODE_VXLAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	movq	%rax, %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_MLX4_TUNNEL_OFFLOAD_MODE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movq	_MLX4_TUNNEL_OFFLOAD_MODE_VXLAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	cmpq	%rax, %rcx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_mlx4_dbg                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_STEERING_MODE_DEVICE_MANAGED,8,3 ## @MLX4_STEERING_MODE_DEVICE_MANAGED
	.comm	_MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS,4,2 ## @MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS
	.comm	_MLX4_TUNNEL_OFFLOAD_MODE_VXLAN,8,3 ## @MLX4_TUNNEL_OFFLOAD_MODE_VXLAN
	.comm	_MLX4_TUNNEL_OFFLOAD_MODE_NONE,8,3 ## @MLX4_TUNNEL_OFFLOAD_MODE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tunneling offload mode is: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"vxlan"

L_.str.2:                               ## @.str.2
	.asciz	"none"

	.no_dead_strip	_choose_tunnel_offload_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_tunnel_offload_mode
_choose_tunnel_offload_mode:            ; @choose_tunnel_offload_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _MLX4_TUNNEL_OFFLOAD_MODE_VXLAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_TUNNEL_OFFLOAD_MODE_VXLAN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	mov	x9, x8
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _MLX4_TUNNEL_OFFLOAD_MODE_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_TUNNEL_OFFLOAD_MODE_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	str	x9, [x0, #8]
Lloh12:
	adrp	x8, _MLX4_TUNNEL_OFFLOAD_MODE_VXLAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_TUNNEL_OFFLOAD_MODE_VXLAN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
LBB0_4:
Lloh15:
	adrp	x10, l_.str.2@PAGE
Lloh16:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh17:
	adrp	x11, l_.str.1@PAGE
Lloh18:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x9, x8
	csel	x2, x11, x10, eq
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	_mlx4_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_STEERING_MODE_DEVICE_MANAGED,8,3 ; @MLX4_STEERING_MODE_DEVICE_MANAGED
	.comm	_MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS,4,2 ; @MLX4_DEV_CAP_FLAG2_VXLAN_OFFLOADS
	.comm	_MLX4_TUNNEL_OFFLOAD_MODE_VXLAN,8,3 ; @MLX4_TUNNEL_OFFLOAD_MODE_VXLAN
	.comm	_MLX4_TUNNEL_OFFLOAD_MODE_NONE,8,3 ; @MLX4_TUNNEL_OFFLOAD_MODE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tunneling offload mode is: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"vxlan"

l_.str.2:                               ; @.str.2
	.asciz	"none"

	.no_dead_strip	_choose_tunnel_offload_mode
.subsections_via_symbols
