	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_selinux_netlbl_socket_setsockopt ## -- Begin function selinux_netlbl_socket_setsockopt
	.p2align	4, 0x90
_selinux_netlbl_socket_setsockopt:      ## @selinux_netlbl_socket_setsockopt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	_IP_OPTIONS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_8
## %bb.2:
	movq	(%rdi), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_NLBL_LABELED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_NLBL_CONNLABELED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_4:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_netlbl_secattr_init
	movq	%r14, %rdi
	callq	_lock_sock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_netlbl_sock_getattr
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_release_sock
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	movq	_ENOMSG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	(%rax), %eax
	addl	%r15d, %eax
	cmovnel	%r15d, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_netlbl_secattr_destroy
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_OPTIONS,4,2                 ## @IP_OPTIONS
	.comm	_NLBL_LABELED,8,3               ## @NLBL_LABELED
	.comm	_NLBL_CONNLABELED,8,3           ## @NLBL_CONNLABELED
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_ENOMSG,4,2                     ## @ENOMSG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_selinux_netlbl_socket_setsockopt ; -- Begin function selinux_netlbl_socket_setsockopt
	.p2align	2
_selinux_netlbl_socket_setsockopt:      ; @selinux_netlbl_socket_setsockopt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _IPPROTO_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_IP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IP_OPTIONS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IP_OPTIONS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w2, #0, eq
	b.ne	LBB0_4
; %bb.1:
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _NLBL_LABELED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NLBL_LABELED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _NLBL_CONNLABELED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NLBL_CONNLABELED@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	add	x0, sp, #8
	bl	_netlbl_secattr_init
	mov	x0, x19
	bl	_lock_sock
	add	x1, sp, #8
	mov	x0, x19
	bl	_netlbl_sock_getattr
	mov	x20, x0
	mov	x0, x19
	bl	_release_sock
	cbz	w20, LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _ENOMSG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMSG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w20, w8
	csel	w19, wzr, w20, eq
	b	LBB0_6
LBB0_4:
	mov	w19, #0
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _EACCES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	add	x0, sp, #8
	bl	_netlbl_secattr_destroy
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_OPTIONS,4,2                 ; @IP_OPTIONS
	.comm	_NLBL_LABELED,8,3               ; @NLBL_LABELED
	.comm	_NLBL_CONNLABELED,8,3           ; @NLBL_CONNLABELED
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_ENOMSG,4,2                     ; @ENOMSG
.subsections_via_symbols
