	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_socket_sock_rcv_skb
_selinux_socket_sock_rcv_skb:           ## @selinux_socket_sock_rcv_skb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PF_INET@GOTPCREL(%rip), %r14
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %r12
	je	LBB0_2
## %bb.1:
	xorl	%r13d, %r13d
	cmpq	%rax, %r12
	jne	LBB0_19
LBB0_2:
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %r13
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %r12
LBB0_5:
	movq	_selinux_policycap_netpeer@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_selinux_secmark_enabled
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_netlbl_enabled
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	testl	%ebx, %ebx
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movb	$1, %r14b
LBB0_10:
	movq	_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movl	12(%r15), %eax
	movl	%eax, -64(%rbp)
	movq	%r12, -72(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_selinux_parse_skb
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.11:
	testb	%r14b, %r14b
	je	LBB0_16
## %bb.12:
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_selinux_skb_peerlbl_sid
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movl	12(%r15), %edi
	movq	-80(%rbp), %rsi
	movl	-52(%rbp), %ecx
	leaq	-72(%rbp), %r8
	movq	%r12, %rdx
	callq	_selinux_inet_sys_rcv_skb
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	-52(%rbp), %esi
	movq	_SECCLASS_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PEER__RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_avc_has_perm
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_selinux_netlbl_err
	jmp	LBB0_19
LBB0_20:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_selinux_sock_rcv_skb_compat    ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	callq	_selinux_xfrm_enabled
	testq	%rax, %rax
	setne	%r14b
	testl	%ebx, %ebx
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	jne	LBB0_10
## %bb.9:
	testq	%rax, %rax
	je	LBB0_19
	jmp	LBB0_10
LBB0_16:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
## %bb.17:
	movl	8(%r15), %esi
	movq	_SECCLASS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PACKET__RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_avc_has_perm
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
LBB0_18:
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_PF_INET6,8,3                   ## @PF_INET6
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_selinux_policycap_netpeer,4,2  ## @selinux_policycap_netpeer
	.comm	_NET,4,2                        ## @NET
	.comm	_SECCLASS_PEER,4,2              ## @SECCLASS_PEER
	.comm	_PEER__RECV,4,2                 ## @PEER__RECV
	.comm	_SECCLASS_PACKET,4,2            ## @SECCLASS_PACKET
	.comm	_PACKET__RECV,4,2               ## @PACKET__RECV
	.no_dead_strip	_selinux_socket_sock_rcv_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_socket_sock_rcv_skb
_selinux_socket_sock_rcv_skb:           ; @selinux_socket_sock_rcv_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x21, [x0]
Lloh0:
	adrp	x23, _PF_INET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PF_INET@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x8, _PF_INET6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PF_INET6@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x9
	ccmp	x21, x8, #4, ne
	b.ne	LBB0_17
; %bb.1:
	mov	x19, x1
	mov	x22, x0
	ldr	x9, [x0, #8]
	ldr	w20, [x9]
	cmp	x21, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x24, [x19]
Lloh5:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	ldr	x8, [x23]
	cmp	x24, x0
	csel	x21, x8, x21, eq
LBB0_3:
Lloh8:
	adrp	x8, _selinux_policycap_netpeer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _selinux_policycap_netpeer@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.4:
	bl	_selinux_secmark_enabled
	mov	x22, x0
	bl	_netlbl_enabled
	cbz	x0, LBB0_13
; %bb.5:
	cmp	w22, #0
	cset	w23, ne
	mov	w24, #1
LBB0_6:
Lloh11:
	adrp	x8, _NET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_COMMON_AUDIT_DATA_INIT
	ldr	w8, [x19, #12]
	str	w8, [sp, #24]
	str	x21, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	mov	x4, #0
	bl	_selinux_parse_skb
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.7:
	cbz	w24, LBB0_15
; %bb.8:
	add	x2, sp, #4
	mov	x0, x19
	mov	x1, x21
	bl	_selinux_skb_peerlbl_sid
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.9:
	ldr	w0, [x19, #12]
	ldr	x1, [sp, #8]
	ldr	w3, [sp, #4]
	add	x4, sp, #16
	mov	x2, x21
	bl	_selinux_inet_sys_rcv_skb
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w1, [sp, #4]
Lloh14:
	adrp	x8, _SECCLASS_PEER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SECCLASS_PEER@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _PEER__RECV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PEER__RECV@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x0, x20
	bl	_avc_has_perm
	mov	x22, x0
	cbz	w0, LBB0_15
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_selinux_netlbl_err
	b	LBB0_18
LBB0_12:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_selinux_sock_rcv_skb_compat
LBB0_13:
	bl	_selinux_xfrm_enabled
	cmp	x0, #0
	cset	w24, ne
	cmp	w22, #0
	cset	w23, ne
	cbnz	w22, LBB0_6
; %bb.14:
	cbz	x0, LBB0_17
	b	LBB0_6
LBB0_15:
	cbz	w23, LBB0_17
; %bb.16:
	ldr	w1, [x19, #8]
Lloh20:
	adrp	x8, _SECCLASS_PACKET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SECCLASS_PACKET@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _PACKET__RECV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PACKET__RECV@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x0, x20
	bl	_avc_has_perm
	mov	x22, x0
	cbnz	w0, LBB0_18
LBB0_17:
	mov	w22, #0
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_PF_INET6,8,3                   ; @PF_INET6
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_selinux_policycap_netpeer,4,2  ; @selinux_policycap_netpeer
	.comm	_NET,4,2                        ; @NET
	.comm	_SECCLASS_PEER,4,2              ; @SECCLASS_PEER
	.comm	_PEER__RECV,4,2                 ; @PEER__RECV
	.comm	_SECCLASS_PACKET,4,2            ; @SECCLASS_PACKET
	.comm	_PACKET__RECV,4,2               ; @PACKET__RECV
	.no_dead_strip	_selinux_socket_sock_rcv_skb
.subsections_via_symbols
