	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_sadinfo
_build_sadinfo:                         ## @build_sadinfo
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdi, %r14
	movq	_XFRM_MSG_NEWSADINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_nlmsg_put
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_nlmsg_data
	movl	%r15d, (%rax)
	leaq	-56(%rbp), %rdi
	callq	_xfrm_sad_getinfo
	movq	-52(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	_XFRMA_SAD_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	movq	%r14, %rdi
	callq	_NLA_PUT_U32
	movq	_XFRMA_SAD_HINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_NLA_PUT
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_nlmsg_end
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MSG_NEWSADINFO,4,2        ## @XFRM_MSG_NEWSADINFO
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_XFRMA_SAD_CNT,4,2              ## @XFRMA_SAD_CNT
	.comm	_XFRMA_SAD_HINFO,4,2            ## @XFRMA_SAD_HINFO
	.no_dead_strip	_build_sadinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_sadinfo
_build_sadinfo:                         ; @build_sadinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _XFRM_MSG_NEWSADINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRM_MSG_NEWSADINFO@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w4, #4
	mov	w5, #0
	bl	_nlmsg_put
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_nlmsg_data
	str	w21, [x0]
	add	x0, sp, #16
	bl	_xfrm_sad_getinfo
	ldur	d0, [sp, #20]
	str	d0, [sp, #8]
Lloh3:
	adrp	x8, _XFRMA_SAD_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRMA_SAD_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	mov	x0, x19
	bl	_NLA_PUT_U32
Lloh6:
	adrp	x8, _XFRMA_SAD_HINFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFRMA_SAD_HINFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	_NLA_PUT
	mov	x0, x19
	mov	x1, x20
	bl	_nlmsg_end
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MSG_NEWSADINFO,4,2        ; @XFRM_MSG_NEWSADINFO
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_XFRMA_SAD_CNT,4,2              ; @XFRMA_SAD_CNT
	.comm	_XFRMA_SAD_HINFO,4,2            ; @XFRMA_SAD_HINFO
	.no_dead_strip	_build_sadinfo
.subsections_via_symbols
