	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_bprm_set_creds
_selinux_bprm_set_creds:                ## @selinux_bprm_set_creds
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r13
	callq	_cap_bprm_set_creds
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.1:
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r12)
	je	LBB0_2
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_current_security
	movq	%rax, %r15
	movq	16(%r12), %rax
	movq	(%rax), %r14
	movq	(%r13), %r13
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	(%r15), %rdi
	movq	%rdi, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	$0, 40(%r14)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r14)
	movq	$0, 16(%r14)
LBB0_5:
	movq	_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movq	8(%r12), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rax), %rax
	movq	_MNT_NOSUID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_4:
	movq	(%r13), %rsi
	movq	_SECCLASS_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_security_transition_sid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_5
LBB0_6:
	movq	(%r14), %rax
LBB0_8:
	movq	(%r15), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_10
## %bb.9:
	movq	(%r13), %rsi
	movq	_SECCLASS_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_FILE__EXECUTE_NO_TRANS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-64(%rbp), %r8
	movq	%rax, %rdi
	callq	_avc_has_perm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_10:
	movq	_SECCLASS_PROCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PROCESS__TRANSITION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-64(%rbp), %r8
	movq	%rax, %rsi
	callq	_avc_has_perm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.11:
	movq	(%r14), %rdi
	movq	(%r13), %rsi
	movq	_SECCLASS_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FILE__ENTRYPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r8
	callq	_avc_has_perm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.12:
	movl	(%r12), %eax
	movq	_LSM_UNSAFE_SHARE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	(%r15), %rdi
	movq	(%r14), %rsi
	movq	_SECCLASS_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROCESS__SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	callq	_avc_has_perm
	testl	%eax, %eax
	je	LBB0_14
LBB0_22:
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_14:
	movl	(%r12), %eax
LBB0_15:
	movq	_LSM_UNSAFE_PTRACE@GOTPCREL(%rip), %rcx
	movq	_LSM_UNSAFE_PTRACE_CAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_18
## %bb.16:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tracehook_tracer_task
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_17
## %bb.20:
	movq	%rbx, %rdi
	callq	___task_cred
	movq	(%rax), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%r15, %r15
	je	LBB0_18
## %bb.21:
	movq	(%r14), %rsi
	movq	_SECCLASS_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROCESS__PTRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_18:
	movq	_PER_CLEAR_ON_SETID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SECCLASS_PROCESS,4,2           ## @SECCLASS_PROCESS
	.comm	_FS,4,2                         ## @FS
	.comm	_MNT_NOSUID,4,2                 ## @MNT_NOSUID
	.comm	_SECCLASS_FILE,4,2              ## @SECCLASS_FILE
	.comm	_FILE__EXECUTE_NO_TRANS,4,2     ## @FILE__EXECUTE_NO_TRANS
	.comm	_PROCESS__TRANSITION,4,2        ## @PROCESS__TRANSITION
	.comm	_FILE__ENTRYPOINT,4,2           ## @FILE__ENTRYPOINT
	.comm	_LSM_UNSAFE_SHARE,4,2           ## @LSM_UNSAFE_SHARE
	.comm	_PROCESS__SHARE,4,2             ## @PROCESS__SHARE
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_LSM_UNSAFE_PTRACE,4,2          ## @LSM_UNSAFE_PTRACE
	.comm	_LSM_UNSAFE_PTRACE_CAP,4,2      ## @LSM_UNSAFE_PTRACE_CAP
	.comm	_current,4,2                    ## @current
	.comm	_PROCESS__PTRACE,4,2            ## @PROCESS__PTRACE
	.comm	_PER_CLEAR_ON_SETID,4,2         ## @PER_CLEAR_ON_SETID
	.no_dead_strip	_selinux_bprm_set_creds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_bprm_set_creds
_selinux_bprm_set_creds:                ; @selinux_bprm_set_creds
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	x22, [x8]
	bl	_cap_bprm_set_creds
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
	bl	_current_security
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x20, [x8]
	ldr	x23, [x22]
	ldr	x8, [x0]
	str	x8, [x20]
	ldr	x0, [x0]
	str	x0, [x20, #8]
	stp	xzr, xzr, [x20, #32]
	str	xzr, [x20, #24]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.5:
	str	x8, [x20]
	str	xzr, [x20, #16]
LBB0_6:
Lloh0:
	adrp	x8, _FS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_COMMON_AUDIT_DATA_INIT
	ldr	x8, [x19, #8]
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MNT_NOSUID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MNT_NOSUID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x21]
	str	x8, [x20]
	b	LBB0_10
LBB0_8:
	ldr	x1, [x23]
Lloh6:
	adrp	x8, _SECCLASS_PROCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SECCLASS_PROCESS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_security_transition_sid
	cbnz	w0, LBB0_3
	b	LBB0_6
LBB0_9:
	ldr	x8, [x20]
LBB0_10:
	ldr	x0, [x21]
	cmp	x8, x0
	b.ne	LBB0_12
; %bb.11:
	ldr	x1, [x23]
Lloh9:
	adrp	x9, _SECCLASS_FILE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SECCLASS_FILE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
Lloh12:
	adrp	x9, _FILE__EXECUTE_NO_TRANS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FILE__EXECUTE_NO_TRANS@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x9]
	mov	x4, sp
	mov	x0, x8
	bl	_avc_has_perm
	cbnz	w0, LBB0_3
	b	LBB0_2
LBB0_12:
Lloh15:
	adrp	x22, _SECCLASS_PROCESS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _SECCLASS_PROCESS@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh17:
	adrp	x9, _PROCESS__TRANSITION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PROCESS__TRANSITION@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x9]
	mov	x4, sp
	mov	x1, x8
	bl	_avc_has_perm
	cbnz	w0, LBB0_3
; %bb.13:
	ldr	x0, [x20]
	ldr	x1, [x23]
Lloh20:
	adrp	x8, _SECCLASS_FILE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SECCLASS_FILE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _FILE__ENTRYPOINT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FILE__ENTRYPOINT@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x4, sp
	bl	_avc_has_perm
	cbnz	w0, LBB0_3
; %bb.14:
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _LSM_UNSAFE_SHARE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LSM_UNSAFE_SHARE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.15:
	ldr	x0, [x21]
	ldr	x1, [x20]
	ldr	w2, [x22]
Lloh29:
	adrp	x8, _PROCESS__SHARE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PROCESS__SHARE@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	x4, #0
	bl	_avc_has_perm
	cbz	w0, LBB0_17
LBB0_16:
Lloh32:
	adrp	x8, _EPERM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_17:
	ldr	w8, [x19]
LBB0_18:
Lloh35:
	adrp	x9, _LSM_UNSAFE_PTRACE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _LSM_UNSAFE_PTRACE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _LSM_UNSAFE_PTRACE_CAP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _LSM_UNSAFE_PTRACE_CAP@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_23
; %bb.19:
	bl	_rcu_read_lock
Lloh41:
	adrp	x8, _current@GOTPAGE
Lloh42:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_tracehook_tracer_task
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_22
; %bb.20:
	mov	x0, x21
	bl	___task_cred
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_rcu_read_unlock
	cbz	x21, LBB0_23
; %bb.21:
	ldr	x1, [x20]
	ldr	w2, [x22]
Lloh44:
	adrp	x8, _PROCESS__PTRACE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PROCESS__PTRACE@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, #0
	bl	_avc_has_perm
	cbnz	w0, LBB0_16
	b	LBB0_23
LBB0_22:
	bl	_rcu_read_unlock
LBB0_23:
Lloh47:
	adrp	x8, _PER_CLEAR_ON_SETID@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PER_CLEAR_ON_SETID@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_SECCLASS_PROCESS,4,2           ; @SECCLASS_PROCESS
	.comm	_FS,4,2                         ; @FS
	.comm	_MNT_NOSUID,4,2                 ; @MNT_NOSUID
	.comm	_SECCLASS_FILE,4,2              ; @SECCLASS_FILE
	.comm	_FILE__EXECUTE_NO_TRANS,4,2     ; @FILE__EXECUTE_NO_TRANS
	.comm	_PROCESS__TRANSITION,4,2        ; @PROCESS__TRANSITION
	.comm	_FILE__ENTRYPOINT,4,2           ; @FILE__ENTRYPOINT
	.comm	_LSM_UNSAFE_SHARE,4,2           ; @LSM_UNSAFE_SHARE
	.comm	_PROCESS__SHARE,4,2             ; @PROCESS__SHARE
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_LSM_UNSAFE_PTRACE,4,2          ; @LSM_UNSAFE_PTRACE
	.comm	_LSM_UNSAFE_PTRACE_CAP,4,2      ; @LSM_UNSAFE_PTRACE_CAP
	.comm	_current,4,2                    ; @current
	.comm	_PROCESS__PTRACE,4,2            ; @PROCESS__PTRACE
	.comm	_PER_CLEAR_ON_SETID,4,2         ; @PER_CLEAR_ON_SETID
	.no_dead_strip	_selinux_bprm_set_creds
.subsections_via_symbols
