	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setresgid                  ## -- Begin function sys_setresgid
	.p2align	4, 0x90
_sys_setresgid:                         ## @sys_setresgid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_STRACE
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	je	LBB0_1
LBB0_14:
	cmpq	$-1, %rbx
	je	LBB0_16
## %bb.15:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax)
LBB0_16:
	cmpq	$-1, %r15
	je	LBB0_18
## %bb.17:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, 8(%rax)
LBB0_18:
	xorl	%eax, %eax
	cmpq	$-1, %r14
	je	LBB0_20
## %bb.19:
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r14, 16(%rcx)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$-1, %rbx
	je	LBB0_6
## %bb.2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_6
## %bb.3:
	cmpq	%rbx, 8(%rax)
	je	LBB0_6
## %bb.4:
	cmpq	%rbx, 16(%rax)
	jne	LBB0_5
LBB0_6:
	cmpq	$-1, %r15
	je	LBB0_10
## %bb.7:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, (%rax)
	je	LBB0_10
## %bb.8:
	cmpq	%r15, 8(%rax)
	je	LBB0_10
## %bb.9:
	cmpq	%r15, 16(%rax)
	jne	LBB0_5
LBB0_10:
	cmpq	$-1, %r14
	je	LBB0_14
## %bb.11:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r14, (%rax)
	je	LBB0_14
## %bb.12:
	cmpq	%r14, 8(%rax)
	je	LBB0_14
## %bb.13:
	cmpq	%r14, 16(%rax)
	je	LBB0_14
LBB0_5:
	movq	__EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setresgid(%d, %d, %d)"

	.comm	_current,8,3                    ## @current
	.comm	__EPERM,4,2                     ## @_EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setresgid                  ; -- Begin function sys_setresgid
	.p2align	2
_sys_setresgid:                         ; @sys_setresgid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_STRACE
	bl	_superuser
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
	cbz	w0, LBB0_7
LBB0_1:
	cmn	x21, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x8]
	str	x21, [x9]
LBB0_3:
	cmn	x20, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	x9, [x8]
	str	x20, [x9, #8]
LBB0_5:
	cmn	x19, #1
	b.eq	LBB0_20
; %bb.6:
	mov	w0, #0
	ldr	x8, [x8]
	str	x19, [x8, #16]
	b	LBB0_21
LBB0_7:
	cmn	x21, #1
	b.eq	LBB0_11
; %bb.8:
	ldr	x9, [x8]
	ldr	x10, [x9]
	cmp	x10, x21
	b.eq	LBB0_11
; %bb.9:
	ldr	x10, [x9, #8]
	cmp	x10, x21
	b.eq	LBB0_11
; %bb.10:
	ldr	x9, [x9, #16]
	cmp	x9, x21
	b.ne	LBB0_19
LBB0_11:
	cmn	x20, #1
	b.eq	LBB0_15
; %bb.12:
	ldr	x9, [x8]
	ldr	x10, [x9]
	cmp	x10, x20
	b.eq	LBB0_15
; %bb.13:
	ldr	x10, [x9, #8]
	cmp	x10, x20
	b.eq	LBB0_15
; %bb.14:
	ldr	x9, [x9, #16]
	cmp	x9, x20
	b.ne	LBB0_19
LBB0_15:
	cmn	x19, #1
	b.eq	LBB0_1
; %bb.16:
	ldr	x9, [x8]
	ldr	x10, [x9]
	cmp	x10, x19
	b.eq	LBB0_1
; %bb.17:
	ldr	x10, [x9, #8]
	cmp	x10, x19
	b.eq	LBB0_1
; %bb.18:
	ldr	x9, [x9, #16]
	cmp	x9, x19
	b.eq	LBB0_1
LBB0_19:
Lloh4:
	adrp	x8, __EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setresgid(%d, %d, %d)"

	.comm	_current,8,3                    ; @current
	.comm	__EPERM,4,2                     ; @_EPERM
.subsections_via_symbols
