	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_emulate_setxuid
_cap_emulate_setxuid:                   ## @cap_emulate_setxuid
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
LBB0_3:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.5:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.6:
	movq	_SECURE_KEEP_CAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_issecure
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
LBB0_11:
	cmpq	$0, 8(%r14)
	jne	LBB0_13
## %bb.12:
	movl	24(%r14), %eax
	movl	%eax, 28(%r14)
	jmp	LBB0_13
LBB0_7:
	movl	24(%r14), %edi
	callq	_cap_clear
	movl	28(%r14), %edi
	callq	_cap_clear
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
LBB0_9:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.10:
	movl	28(%r14), %edi
	callq	_cap_clear
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECURE_KEEP_CAPS,4,2           ## @SECURE_KEEP_CAPS
	.no_dead_strip	_cap_emulate_setxuid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_emulate_setxuid
_cap_emulate_setxuid:                   ; @cap_emulate_setxuid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_7
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _SECURE_KEEP_CAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECURE_KEEP_CAPS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_issecure
	cbz	w0, LBB0_10
LBB0_7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
LBB0_8:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_13
; %bb.9:
	ldr	w8, [x19, #24]
	str	w8, [x19, #28]
	b	LBB0_13
LBB0_10:
	ldr	w0, [x19, #24]
	bl	_cap_clear
	ldr	w0, [x19, #28]
	bl	_cap_clear
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_8
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w0, [x19, #28]
	bl	_cap_clear
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_8
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECURE_KEEP_CAPS,4,2           ; @SECURE_KEEP_CAPS
	.no_dead_strip	_cap_emulate_setxuid
.subsections_via_symbols
