	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gre_update_udphdr              ## -- Begin function gre_update_udphdr
	.p2align	4, 0x90
_gre_update_udphdr:                     ## @gre_update_udphdr
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_gre_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	movq	_GRE_UDPENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r15), %edi
	callq	_MPASS
	movq	_GRE_UDPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 24(%rbx)
	movl	4(%r15), %edi
	callq	_htons
	movq	%rax, 16(%rbx)
	movl	%r14d, 8(%rbx)
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gre_ioctl_sx,4,2               ## @gre_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_GRE_UDPENCAP,4,2               ## @GRE_UDPENCAP
	.comm	_GRE_UDPPORT,4,2                ## @GRE_UDPPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gre_update_udphdr              ; -- Begin function gre_update_udphdr
	.p2align	2
_gre_update_udphdr:                     ; @gre_update_udphdr
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _gre_ioctl_sx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gre_ioctl_sx@GOTPAGEOFF]
	bl	_sx_assert
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _GRE_UDPENCAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GRE_UDPENCAP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_MPASS
Lloh8:
	adrp	x8, _GRE_UDPPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GRE_UDPPORT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x20, #24]
	ldr	w0, [x21, #4]
	bl	_htons
	str	x0, [x20, #16]
	str	w19, [x20, #8]
	str	xzr, [x20]
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gre_ioctl_sx,4,2               ; @gre_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_GRE_UDPENCAP,4,2               ; @GRE_UDPENCAP
	.comm	_GRE_UDPPORT,4,2                ; @GRE_UDPPORT
.subsections_via_symbols
