	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smack_socket_getpeersec_dgram
_smack_socket_getpeersec_dgram:         ## @smack_socket_getpeersec_dgram
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SMK_LABELLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movl	(%rcx), %ebx
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	xorl	%r13d, %r13d
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
LBB0_4:
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_netlbl_secattr_init
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_netlbl_skbuff_getattr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	leaq	-56(%rbp), %rdi
	callq	_netlbl_secattr_destroy
	jmp	LBB0_9
LBB0_6:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_smack_from_secattr
	movq	%rbx, %rdi
	callq	_netlbl_secattr_destroy
	movq	%r15, %rdi
	callq	_smack_to_secid
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SMK_LABELLEN,4,2               ## @SMK_LABELLEN
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smack_socket_getpeersec_dgram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smack_socket_getpeersec_dgram
_smack_socket_getpeersec_dgram:         ; @smack_socket_getpeersec_dgram
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x21, x1
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _SMK_LABELLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMK_LABELLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _PF_INET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x9, [x0]
	ldr	w22, [x9]
Lloh11:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.eq	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_9
LBB0_3:
	mov	x22, x8
LBB0_4:
	sub	x0, x29, #64
	bl	_netlbl_secattr_init
	sub	x2, x29, #64
	mov	x0, x21
	mov	x1, x22
	bl	_netlbl_skbuff_getattr
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	sub	x0, x29, #64
	bl	_netlbl_secattr_destroy
	b	LBB0_9
LBB0_6:
	sub	x0, x29, #64
	mov	x1, x20
	bl	_smack_from_secattr
	sub	x0, x29, #64
	bl	_netlbl_secattr_destroy
	mov	x0, x20
	bl	_smack_to_secid
	cbz	x0, LBB0_8
; %bb.7:
	mov	w21, #0
	str	x0, [x19]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	sub	sp, x29, #48
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SMK_LABELLEN,4,2               ; @SMK_LABELLEN
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smack_socket_getpeersec_dgram
.subsections_via_symbols
