	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_is_present                 ## -- Begin function mac_is_present
	.p2align	4, 0x90
_mac_is_present:                        ## @mac_is_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcspn
	cmpb	$0, (%rbx,%rax)
	je	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_3:
	movq	$3, -56(%rbp)
	leaq	L_.str.3(%rip), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_sysctlnametomib
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	22(%rax), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	$5, -56(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sysctlnametomib
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
LBB0_6:
	movl	$1, %eax
	cmpl	$-1, %ebx
	jne	LBB0_9
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	$-2, %ecx
	xorl	%eax, %eax
	cmpl	$128, %ecx
	setne	%al
	negl	%eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".="

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"security.mac."

L_.str.2:                               ## @.str.2
	.asciz	".enabled"

L_.str.3:                               ## @.str.3
	.asciz	"security.mac"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_is_present                 ; -- Begin function mac_is_present
	.p2align	2
_mac_is_present:                        ; @mac_is_present
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcspn
	ldrb	w8, [x19, x0]
	cbz	w8, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _errno@GOTPAGE
Lloh9:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_3:
	mov	w0, #-1
	b	LBB0_9
LBB0_4:
	mov	w8, #3
	str	x8, [sp, #8]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #20
	add	x2, sp, #8
	bl	_sysctlnametomib
	mov	x19, x0
	cmn	w19, #1
	b.eq	LBB0_8
LBB0_5:
	mov	w0, #1
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_strlen
	add	w0, w0, #22
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.7:
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	mov	x0, x20
	mov	x1, x19
	bl	_strcat
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcat
	mov	w8, #5
	str	x8, [sp, #8]
	add	x1, sp, #20
	add	x2, sp, #8
	mov	x0, x20
	bl	_sysctlnametomib
	mov	x19, x0
	mov	x0, x20
	bl	_free
	cmn	w19, #1
	b.ne	LBB0_5
LBB0_8:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	csetm	w0, ne
LBB0_9:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".="

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"security.mac."

l_.str.2:                               ; @.str.2
	.asciz	".enabled"

l_.str.3:                               ; @.str.3
	.asciz	"security.mac"

.subsections_via_symbols
