	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_getsockopt_label           ## -- Begin function mac_getsockopt_label
	.p2align	4, 0x90
_mac_getsockopt_label:                  ## @mac_getsockopt_label
	.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	_mac_labeled@GOTPCREL(%rip), %rax
	movq	_MPC_OBJECT_SOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdx, %rdi
	callq	_mac_check_structmac_consistent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	4(%r13), %edi
	movq	_M_MACTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_malloc
	movq	%rax, %r14
	movl	(%r13), %edi
	movl	4(%r13), %edx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_copyinstr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	_M_MACTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movl	4(%r13), %edi
	movq	_M_MACTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	callq	_malloc
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_mac_socket_label_alloc
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_SOCK_LOCK
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_mac_socket_copy_label
	movq	%r15, %rdi
	callq	_SOCK_UNLOCK
	movl	4(%r13), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %r15
	movq	%rbx, %rdx
	callq	_mac_socket_externalize_label
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %r12
	callq	_mac_socket_label_free
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_copyout
	movl	%eax, %ebx
LBB0_7:
	movq	_M_MACTEMP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_free
	movl	(%r15), %esi
LBB0_8:
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mac_labeled,4,2                ## @mac_labeled
	.comm	_MPC_OBJECT_SOCKET,4,2          ## @MPC_OBJECT_SOCKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_MACTEMP,4,2                  ## @M_MACTEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_getsockopt_label           ; -- Begin function mac_getsockopt_label
	.p2align	2
_mac_getsockopt_label:                  ; @mac_getsockopt_label
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _mac_labeled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mac_labeled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPC_OBJECT_SOCKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPC_OBJECT_SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x0, x2
	bl	_mac_check_structmac_consistent
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x25, _M_MACTEMP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _M_MACTEMP@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh8:
	adrp	x24, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _M_WAITOK@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_malloc
	mov	x20, x0
	ldp	w0, w2, [x19]
	mov	x1, x20
	mov	x3, #0
	bl	_copyinstr
	cbz	w0, LBB0_5
; %bb.3:
	mov	x23, x0
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	ldr	w8, [x24]
Lloh13:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	mov	x22, x0
	ldr	w0, [x24]
	bl	_mac_socket_label_alloc
	mov	x24, x0
	mov	x0, x21
	bl	_SOCK_LOCK
	ldr	w0, [x21]
	mov	x1, x24
	bl	_mac_socket_copy_label
	mov	x0, x21
	bl	_SOCK_UNLOCK
	ldr	w3, [x19, #4]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	bl	_mac_socket_externalize_label
	mov	x23, x0
	mov	x0, x24
	bl	_mac_socket_label_free
	cbnz	w23, LBB0_7
; %bb.6:
	ldr	w19, [x19]
	mov	x0, x22
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x22
	mov	x1, x19
	bl	_copyout
	mov	x23, x0
LBB0_7:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_free
LBB0_8:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_free
LBB0_9:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mac_labeled,4,2                ; @mac_labeled
	.comm	_MPC_OBJECT_SOCKET,4,2          ; @MPC_OBJECT_SOCKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_MACTEMP,4,2                  ; @M_MACTEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
.subsections_via_symbols
