	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_neverbleed_setuidgid           ## -- Begin function neverbleed_setuidgid
	.p2align	4, 0x90
_neverbleed_setuidgid:                  ## @neverbleed_setuidgid
	.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, %r14d
	movq	%rsi, %r12
	callq	_get_thread_data
	movq	%rax, %r15
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_expbuf_push_str
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_expbuf_push_str
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_expbuf_push_num
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_expbuf_write
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_dief
LBB0_2:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_expbuf_dispose
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_expbuf_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_dief
LBB0_4:
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_expbuf_shift_num
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.4(%rip), %rdi
	callq	_dief
LBB0_6:
	leaq	-40(%rbp), %rdi
	callq	_expbuf_dispose
	movl	-48(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setuidgid"

	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"write error"

L_.str.2:                               ## @.str.2
	.asciz	"connection closed by daemon"

L_.str.3:                               ## @.str.3
	.asciz	"read error"

L_.str.4:                               ## @.str.4
	.asciz	"failed to parse response"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_neverbleed_setuidgid           ; -- Begin function neverbleed_setuidgid
	.p2align	2
_neverbleed_setuidgid:                  ; @neverbleed_setuidgid
	.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
	bl	_get_thread_data
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_expbuf_push_str
	add	x0, sp, #8
	mov	x1, x21
	bl	_expbuf_push_str
	add	x0, sp, #8
	mov	x1, x20
	bl	_expbuf_push_num
	ldr	w1, [x19]
	add	x0, sp, #8
	bl	_expbuf_write
Lloh2:
	adrp	x20, _errno@GOTPAGE
Lloh3:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x0, x21, x9, eq
	bl	_dief
LBB0_2:
	add	x0, sp, #8
	bl	_expbuf_dispose
	ldr	w1, [x19]
	add	x0, sp, #8
	bl	_expbuf_read
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, l_.str.3@PAGE
Lloh9:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x0, x21, x9, eq
	bl	_dief
LBB0_4:
	add	x0, sp, #8
	mov	x1, sp
	bl	_expbuf_shift_num
	cbz	x0, LBB0_6
; %bb.5:
	str	xzr, [x20]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dief
LBB0_6:
	add	x0, sp, #8
	bl	_expbuf_dispose
	ldr	w0, [sp]
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setuidgid"

	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"write error"

l_.str.2:                               ; @.str.2
	.asciz	"connection closed by daemon"

l_.str.3:                               ; @.str.3
	.asciz	"read error"

l_.str.4:                               ; @.str.4
	.asciz	"failed to parse response"

.subsections_via_symbols
