	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_execve_enter               ## -- Begin function mac_execve_enter
	.p2align	4, 0x90
_mac_execve_enter:                      ## @mac_execve_enter
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_mac_labeled@GOTPCREL(%rip), %rax
	movq	_MPC_OBJECT_CRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	leaq	-48(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_copyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	leaq	-48(%rbp), %rdi
	callq	_mac_check_structmac_consistent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	-48(%rbp), %edi
	movq	_M_MACTEMP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r15
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %edi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_copyinstr
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mac_cred_label_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_mac_cred_internalize_label
	movl	%eax, %r13d
	movq	_M_MACTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_free
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_mac_cred_label_free
	movl	%r13d, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%r12, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_mac_labeled,4,2                ## @mac_labeled
	.comm	_MPC_OBJECT_CRED,4,2            ## @MPC_OBJECT_CRED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_MACTEMP,4,2                  ## @M_MACTEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_execve_enter               ; -- Begin function mac_execve_enter
	.p2align	2
_mac_execve_enter:                      ; @mac_execve_enter
	.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
	cbz	x1, LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, _mac_labeled@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mac_labeled@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MPC_OBJECT_CRED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MPC_OBJECT_CRED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.2:
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #8
	bl	_copyin
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.3:
	add	x0, sp, #8
	bl	_mac_check_structmac_consistent
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w0, [sp, #8]
Lloh6:
	adrp	x23, _M_MACTEMP@GOTPAGE
Lloh7:
	ldr	x23, [x23, _M_MACTEMP@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_malloc
	mov	x21, x0
	ldp	w2, w0, [sp, #8]
	mov	x1, x21
	mov	x3, #0
	bl	_copyinstr
	cbz	w0, LBB0_9
; %bb.5:
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x21
	bl	_free
	b	LBB0_8
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	bl	_mac_cred_label_alloc
	mov	x22, x0
	mov	x1, x21
	bl	_mac_cred_internalize_label
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x21
	bl	_free
	cbz	w20, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_mac_cred_label_free
	b	LBB0_8
LBB0_11:
	str	x22, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_mac_labeled,4,2                ; @mac_labeled
	.comm	_MPC_OBJECT_CRED,4,2            ; @MPC_OBJECT_CRED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_MACTEMP,4,2                  ; @M_MACTEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
.subsections_via_symbols
