	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function confirm_sugid
_confirm_sugid:                         ## @confirm_sugid
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_fpath@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_S_ISUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-40(%rbp), %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_1:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	jmp	LBB0_8
LBB0_5:
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
LBB0_7:
	movq	%r14, %rsi
	callq	_warnx
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fpath,4,2                      ## @fpath
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s stat(%s)"

	.comm	_S_ISUID,4,2                    ## @S_ISUID
L_.str.1:                               ## @.str.1
	.asciz	"%s(root, %s): !SUID"

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

L_.str.3:                               ## @.str.3
	.asciz	"!jail"

L_.str.4:                               ## @.str.4
	.asciz	"%s(!root, %s): SUID"

	.no_dead_strip	_confirm_sugid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function confirm_sugid
_confirm_sugid:                         ; @confirm_sugid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _fpath@GOTPAGE
Lloh1:
	ldr	x22, [x22, _fpath@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_stat
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _S_ISUID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S_ISUID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w21, LBB0_5
; %bb.2:
	cbnz	w8, LBB0_8
; %bb.3:
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldr	w2, [x22]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	b	LBB0_8
LBB0_5:
	cbz	w8, LBB0_8
; %bb.6:
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_7:
	mov	x1, x19
	bl	_warnx
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_fpath,4,2                      ; @fpath
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s stat(%s)"

	.comm	_S_ISUID,4,2                    ; @S_ISUID
l_.str.1:                               ; @.str.1
	.asciz	"%s(root, %s): !SUID"

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

l_.str.3:                               ; @.str.3
	.asciz	"!jail"

l_.str.4:                               ; @.str.4
	.asciz	"%s(!root, %s): SUID"

	.no_dead_strip	_confirm_sugid
.subsections_via_symbols
