	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_aevent
_build_aevent:                          ## @build_aevent
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	4(%rdx), %edx
	movl	8(%r13), %esi
	movq	_XFRM_MSG_NEWAE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	$28, %r8d
	xorl	%r9d, %r9d
	callq	_nlmsg_put
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nlmsg_data
	movq	%rax, %rbx
	leaq	24(%rax), %rdi
	leaq	40(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	36(%r12), %eax
	movl	%eax, 20(%rbx)
	movl	28(%r12), %eax
	movl	%eax, 16(%rbx)
	movl	32(%r12), %eax
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	leaq	24(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movq	_XFRMA_REPLAY_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r12), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_NLA_PUT
	movq	_XFRMA_LTIME_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r12), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_NLA_PUT
	movl	(%rbx), %eax
	movq	_XFRM_AE_RTHR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_XFRMA_REPLAY_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_NLA_PUT_U32
	movl	(%rbx), %eax
LBB0_4:
	movq	_XFRM_AE_ETHR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_XFRMA_ETIMER_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_NLA_PUT_U32
LBB0_6:
	addq	$8, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_xfrm_mark_put
	movq	%r14, %rdi
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	callq	_nlmsg_cancel
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nlmsg_end                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MSG_NEWAE,4,2             ## @XFRM_MSG_NEWAE
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_XFRMA_REPLAY_VAL,4,2           ## @XFRMA_REPLAY_VAL
	.comm	_XFRMA_LTIME_VAL,4,2            ## @XFRMA_LTIME_VAL
	.comm	_XFRM_AE_RTHR,4,2               ## @XFRM_AE_RTHR
	.comm	_XFRMA_REPLAY_THRESH,4,2        ## @XFRMA_REPLAY_THRESH
	.comm	_XFRM_AE_ETHR,4,2               ## @XFRM_AE_ETHR
	.comm	_XFRMA_ETIMER_THRESH,4,2        ## @XFRMA_ETIMER_THRESH
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_build_aevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_aevent
_build_aevent:                          ; @build_aevent
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w2, w1, [x2, #4]
Lloh0:
	adrp	x8, _XFRM_MSG_NEWAE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRM_MSG_NEWAE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w4, #28
	mov	w5, #0
	bl	_nlmsg_put
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	bl	_nlmsg_data
	mov	x22, x0
	add	x0, x0, #24
	add	x1, x20, #40
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20, #36]
	str	w8, [x22, #20]
	ldur	d0, [x20, #28]
	rev64.2s	v0, v0
	stur	d0, [x22, #12]
	add	x0, x22, #8
	add	x1, x20, #24
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20, #20]
	ldr	w9, [x23]
	stp	w9, w8, [x22]
Lloh3:
	adrp	x8, _XFRMA_REPLAY_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRMA_REPLAY_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, x20, #16
	mov	x0, x19
	mov	w2, #4
	bl	_NLA_PUT
Lloh6:
	adrp	x8, _XFRMA_LTIME_VAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFRMA_LTIME_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, x20, #12
	mov	x0, x19
	mov	w2, #4
	bl	_NLA_PUT
	ldr	w8, [x22]
Lloh9:
	adrp	x9, _XFRM_AE_RTHR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XFRM_AE_RTHR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _XFRMA_REPLAY_THRESH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XFRMA_REPLAY_THRESH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_NLA_PUT_U32
	ldr	w8, [x22]
LBB0_3:
Lloh15:
	adrp	x9, _XFRM_AE_ETHR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XFRM_AE_ETHR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _XFRMA_ETIMER_THRESH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XFRMA_ETIMER_THRESH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
Lloh21:
	adrp	x9, _HZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	mov	x0, x19
	bl	_NLA_PUT_U32
LBB0_5:
	add	x1, x20, #8
	mov	x0, x19
	bl	_xfrm_mark_put
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_nlmsg_cancel
LBB0_7:
Lloh24:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nlmsg_end
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MSG_NEWAE,4,2             ; @XFRM_MSG_NEWAE
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_XFRMA_REPLAY_VAL,4,2           ; @XFRMA_REPLAY_VAL
	.comm	_XFRMA_LTIME_VAL,4,2            ; @XFRMA_LTIME_VAL
	.comm	_XFRM_AE_RTHR,4,2               ; @XFRM_AE_RTHR
	.comm	_XFRMA_REPLAY_THRESH,4,2        ; @XFRMA_REPLAY_THRESH
	.comm	_XFRM_AE_ETHR,4,2               ; @XFRM_AE_ETHR
	.comm	_XFRMA_ETIMER_THRESH,4,2        ; @XFRMA_ETIMER_THRESH
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_build_aevent
.subsections_via_symbols
