	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_socket_getpeersec_dgram
_selinux_socket_getpeersec_dgram:       ## @selinux_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_SECSID_NULL@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %r13
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_3
## %bb.2:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	(%rbx), %r13
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_5
## %bb.4:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:
	movq	(%r15), %rax
LBB0_7:
	movq	(%rax), %rsi
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_SOCK_INODE
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_selinux_inode_getsecid
	jmp	LBB0_12
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_selinux_skb_peerlbl_sid
LBB0_12:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	(%r12), %rcx
	cmovnel	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECSID_NULL,8,3                ## @SECSID_NULL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_PF_INET6,8,3                   ## @PF_INET6
	.comm	_PF_UNIX,8,3                    ## @PF_UNIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_selinux_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 selinux_socket_getpeersec_dgram
_selinux_socket_getpeersec_dgram:       ; @selinux_socket_getpeersec_dgram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _SECSID_NULL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SECSID_NULL@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #8]
	cbz	x1, LBB0_5
; %bb.1:
	ldr	x23, [x20]
Lloh2:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _PF_INET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	ldr	x23, [x20]
Lloh7:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _PF_INET6@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PF_INET6@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	cbz	x21, LBB0_12
; %bb.6:
	ldr	x8, [x21]
LBB0_7:
	ldr	x1, [x8]
	cbz	x21, LBB0_10
; %bb.8:
Lloh12:
	adrp	x8, _PF_UNIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PF_UNIX@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_SOCK_INODE
	add	x1, sp, #8
	bl	_selinux_inode_getsecid
	b	LBB0_12
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	add	x2, sp, #8
	mov	x0, x20
	bl	_selinux_skb_peerlbl_sid
LBB0_12:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	ldr	x9, [x22]
Lloh15:
	adrp	x10, _EINVAL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w0, wzr, w10, ne
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SECSID_NULL,8,3                ; @SECSID_NULL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_PF_INET6,8,3                   ; @PF_INET6
	.comm	_PF_UNIX,8,3                    ; @PF_UNIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_selinux_socket_getpeersec_dgram
.subsections_via_symbols
