	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm4_prepare_output           ## -- Begin function xfrm4_prepare_output
	.p2align	4, 0x90
_xfrm4_prepare_output:                  ## @xfrm4_prepare_output
	.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	_xfrm_inner_extract_output
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_IPCB
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_IPSKB_XFRM_TUNNEL_SIZE@GOTPCREL(%rip), %rax
	movq	_IPSKB_XFRM_TRANSFORMED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_IPCB
	orl	%r15d, (%rax)
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSKB_XFRM_TUNNEL_SIZE,4,2     ## @IPSKB_XFRM_TUNNEL_SIZE
	.comm	_IPSKB_XFRM_TRANSFORMED,4,2     ## @IPSKB_XFRM_TRANSFORMED
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm4_prepare_output           ; -- Begin function xfrm4_prepare_output
	.p2align	2
_xfrm4_prepare_output:                  ; @xfrm4_prepare_output
	.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, x1
	mov	x20, x0
	bl	_xfrm_inner_extract_output
	cbz	w0, LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	bl	_IPCB
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _IPSKB_XFRM_TUNNEL_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPSKB_XFRM_TUNNEL_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IPSKB_XFRM_TRANSFORMED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPSKB_XFRM_TRANSFORMED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x19
	bl	_IPCB
	ldr	w8, [x0]
	orr	w8, w21, w8
	str	w8, [x0]
Lloh6:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	br	x2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSKB_XFRM_TUNNEL_SIZE,4,2     ; @IPSKB_XFRM_TUNNEL_SIZE
	.comm	_IPSKB_XFRM_TRANSFORMED,4,2     ; @IPSKB_XFRM_TRANSFORMED
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
.subsections_via_symbols
