	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ovs_ipv4_tun_to_nlattr         ## -- Begin function ovs_ipv4_tun_to_nlattr
	.p2align	4, 0x90
_ovs_ipv4_tun_to_nlattr:                ## @ovs_ipv4_tun_to_nlattr
	.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, %r15
	movq	_OVS_KEY_ATTR_TUNNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nla_nest_start
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_TUNNEL_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_OVS_TUNNEL_KEY_ATTR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%rbx), %edx
	movq	%r15, %rdi
	callq	_nla_put_be64
	testq	%rax, %rax
	jne	LBB0_1
LBB0_4:
	movq	32(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_OVS_TUNNEL_KEY_ATTR_IPV4_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nla_put_be32
	testq	%rax, %rax
	jne	LBB0_1
LBB0_6:
	movq	_OVS_TUNNEL_KEY_ATTR_IPV4_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%r15, %rdi
	callq	_nla_put_be32
	testq	%rax, %rax
	je	LBB0_7
LBB0_1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movq	_OVS_TUNNEL_KEY_ATTR_TOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nla_put_u8
	testq	%rax, %rax
	jne	LBB0_1
LBB0_9:
	movq	_OVS_TUNNEL_KEY_ATTR_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	%r15, %rdi
	callq	_nla_put_u8
	testq	%rax, %rax
	jne	LBB0_1
## %bb.10:
	movl	(%rbx), %eax
	movq	_TUNNEL_DONT_FRAGMENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.11:
	movq	_OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_1
## %bb.12:
	movl	(%rbx), %eax
LBB0_13:
	movq	_TUNNEL_CSUM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_OVS_TUNNEL_KEY_ATTR_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_1
LBB0_15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nla_nest_end
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_OVS_KEY_ATTR_TUNNEL,4,2        ## @OVS_KEY_ATTR_TUNNEL
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_TUNNEL_KEY,4,2                 ## @TUNNEL_KEY
	.comm	_OVS_TUNNEL_KEY_ATTR_ID,4,2     ## @OVS_TUNNEL_KEY_ATTR_ID
	.comm	_OVS_TUNNEL_KEY_ATTR_IPV4_SRC,4,2 ## @OVS_TUNNEL_KEY_ATTR_IPV4_SRC
	.comm	_OVS_TUNNEL_KEY_ATTR_IPV4_DST,4,2 ## @OVS_TUNNEL_KEY_ATTR_IPV4_DST
	.comm	_OVS_TUNNEL_KEY_ATTR_TOS,4,2    ## @OVS_TUNNEL_KEY_ATTR_TOS
	.comm	_OVS_TUNNEL_KEY_ATTR_TTL,4,2    ## @OVS_TUNNEL_KEY_ATTR_TTL
	.comm	_TUNNEL_DONT_FRAGMENT,4,2       ## @TUNNEL_DONT_FRAGMENT
	.comm	_OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT,4,2 ## @OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT
	.comm	_TUNNEL_CSUM,4,2                ## @TUNNEL_CSUM
	.comm	_OVS_TUNNEL_KEY_ATTR_CSUM,4,2   ## @OVS_TUNNEL_KEY_ATTR_CSUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ovs_ipv4_tun_to_nlattr         ; -- Begin function ovs_ipv4_tun_to_nlattr
	.p2align	2
_ovs_ipv4_tun_to_nlattr:                ; @ovs_ipv4_tun_to_nlattr
	.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
Lloh0:
	adrp	x8, _OVS_KEY_ATTR_TUNNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OVS_KEY_ATTR_TUNNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nla_nest_start
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _TUNNEL_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TUNNEL_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x21, #40]
	mov	x0, x19
	bl	_nla_put_be64
	cbnz	x0, LBB0_6
LBB0_3:
	ldr	x2, [x21, #32]
	cbz	x2, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_IPV4_SRC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_IPV4_SRC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_be32
	cbnz	x0, LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_IPV4_DST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_IPV4_DST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x21, #24]
	mov	x0, x19
	bl	_nla_put_be32
	cbz	x0, LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_TOS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_TOS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_u8
	cbnz	x0, LBB0_6
LBB0_10:
Lloh21:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_TTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_TTL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_nla_put_u8
	cbnz	x0, LBB0_6
; %bb.11:
	ldr	w8, [x21]
Lloh24:
	adrp	x9, _TUNNEL_DONT_FRAGMENT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TUNNEL_DONT_FRAGMENT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
Lloh27:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_6
; %bb.13:
	ldr	w8, [x21]
LBB0_14:
Lloh30:
	adrp	x9, _TUNNEL_CSUM@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TUNNEL_CSUM@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _OVS_TUNNEL_KEY_ATTR_CSUM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OVS_TUNNEL_KEY_ATTR_CSUM@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_6
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_end
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_OVS_KEY_ATTR_TUNNEL,4,2        ; @OVS_KEY_ATTR_TUNNEL
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_TUNNEL_KEY,4,2                 ; @TUNNEL_KEY
	.comm	_OVS_TUNNEL_KEY_ATTR_ID,4,2     ; @OVS_TUNNEL_KEY_ATTR_ID
	.comm	_OVS_TUNNEL_KEY_ATTR_IPV4_SRC,4,2 ; @OVS_TUNNEL_KEY_ATTR_IPV4_SRC
	.comm	_OVS_TUNNEL_KEY_ATTR_IPV4_DST,4,2 ; @OVS_TUNNEL_KEY_ATTR_IPV4_DST
	.comm	_OVS_TUNNEL_KEY_ATTR_TOS,4,2    ; @OVS_TUNNEL_KEY_ATTR_TOS
	.comm	_OVS_TUNNEL_KEY_ATTR_TTL,4,2    ; @OVS_TUNNEL_KEY_ATTR_TTL
	.comm	_TUNNEL_DONT_FRAGMENT,4,2       ; @TUNNEL_DONT_FRAGMENT
	.comm	_OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT,4,2 ; @OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT
	.comm	_TUNNEL_CSUM,4,2                ; @TUNNEL_CSUM
	.comm	_OVS_TUNNEL_KEY_ATTR_CSUM,4,2   ; @OVS_TUNNEL_KEY_ATTR_CSUM
.subsections_via_symbols
