	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_swpid
_set_swpid:                             ## @set_swpid
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_MIN_PID@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_MAX_PID@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$0, (%r13)
	movq	$0, 8(%r13)
	leaq	L_.str(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_CE_SIGNALGROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	negq	%rax
	negq	%r15
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 16(%r13)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_3:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %r12
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:
	movq	%r12, %rdi
	callq	_fclose
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	decq	%rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_15
## %bb.16:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-72(%rbp), %rax
	movb	(%rax), %al
	testb	%al, %al
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_20
## %bb.17:
	movsbl	%al, %edi
	callq	_isspacech
	testl	%eax, %eax
	je	LBB0_18
LBB0_20:
	cmpq	%r15, %rbx
	jl	LBB0_22
## %bb.21:
	cmpq	%r12, %rbx
	jg	LBB0_22
## %bb.24:
	movl	$1, (%r13)
	movq	%rbx, 8(%r13)
	jmp	LBB0_25
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_enforcepid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	$1, (%r13)
	movq	8(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_19
LBB0_9:
	movq	%r12, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_enforcepid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	movl	$1, (%r13)
	movq	8(%r14), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_13
LBB0_7:
	movq	8(%r14), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	jmp	LBB0_25
LBB0_22:
	movq	8(%r14), %rdx
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
## %bb.23:
	leaq	L_.str.9(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_26
LBB0_12:
	movq	8(%r14), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_warn
LBB0_13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_26
LBB0_18:
	movq	8(%r14), %rsi
	leaq	L_.str.7(%rip), %rdi
LBB0_19:
	xorl	%eax, %eax
	callq	_warnx
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_MIN_PID,8,3                    ## @MIN_PID
	.comm	_MAX_PID,8,3                    ## @MAX_PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"daemon"

	.comm	_CE_SIGNALGROUP,4,2             ## @CE_SIGNALGROUP
L_.str.1:                               ## @.str.1
	.asciz	"process-group"

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

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_enforcepid,8,3                 ## @enforcepid
L_.str.3:                               ## @.str.3
	.asciz	"pid file doesn't exist: %s"

L_.str.4:                               ## @.str.4
	.asciz	"can't open pid file: %s"

L_.str.5:                               ## @.str.5
	.asciz	"pid/cmd file is empty: %s"

L_.str.6:                               ## @.str.6
	.asciz	"can't read from pid file: %s"

L_.str.7:                               ## @.str.7
	.asciz	"pid file does not start with a valid number: %s"

L_.str.8:                               ## @.str.8
	.asciz	"bad value '%ld' for process number in %s"

	.comm	_verbose,8,3                    ## @verbose
L_.str.9:                               ## @.str.9
	.asciz	"\t(expecting value between %ld and %ld)"

	.no_dead_strip	_set_swpid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_swpid
_set_swpid:                             ; @set_swpid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BUFSIZ@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x8, _MIN_PID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MIN_PID@GOTPAGEOFF]
Lloh9:
	adrp	x9, _MAX_PID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_PID@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
Lloh12:
	ldr	x25, [x9]
	str	wzr, [x0]
Lloh13:
	adrp	x8, l_.str@PAGE
Lloh14:
	add	x8, x8, l_.str@PAGEOFF
	stp	xzr, x8, [x0, #8]
	ldr	w8, [x1]
Lloh15:
	adrp	x9, _CE_SIGNALGROUP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CE_SIGNALGROUP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	neg	x8, x25
	neg	x25, x21
Lloh18:
	adrp	x9, l_.str.1@PAGE
Lloh19:
	add	x9, x9, l_.str.1@PAGEOFF
	str	x9, [x20, #16]
	mov	x21, x8
LBB0_2:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_11
; %bb.3:
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x23
	bl	_fclose
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	str	xzr, [x8]
	sub	x0, x22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0, #1]!
	cmp	w8, #32
	b.eq	LBB0_5
; %bb.6:
	sub	x1, x29, #80
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
	ldur	x8, [x29, #-80]
	ldrb	w8, [x8]
	cbz	w8, LBB0_8
; %bb.7:
	sxtb	w0, w8
	bl	_isspacech
	cbz	w0, LBB0_21
LBB0_8:
	cmp	x22, x21
	b.lt	LBB0_17
; %bb.9:
	cmp	x22, x25
	b.gt	LBB0_17
; %bb.10:
	mov	w8, #1
	str	w8, [x20]
	str	x22, [x20, #8]
	b	LBB0_23
LBB0_11:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _ENOENT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
Lloh31:
	adrp	x10, _enforcepid@GOTPAGE
Lloh32:
	ldr	x10, [x10, _enforcepid@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_16
; %bb.12:
	ldr	x1, [x19, #8]
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	b	LBB0_23
LBB0_13:
	mov	x0, x23
	bl	_feof
	cbz	x0, LBB0_19
; %bb.14:
Lloh36:
	adrp	x8, _enforcepid@GOTPAGE
Lloh37:
	ldr	x8, [x8, _enforcepid@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cbnz	x8, LBB0_19
; %bb.15:
	mov	w8, #1
	str	w8, [x20]
	ldr	x1, [x19, #8]
Lloh39:
	adrp	x0, l_.str.5@PAGE
Lloh40:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
	b	LBB0_20
LBB0_16:
	mov	w8, #1
	str	w8, [x20]
	ldr	x1, [x19, #8]
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_17:
	ldr	x8, [x19, #8]
	str	x8, [sp, #-16]!
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x22
	bl	_warnx
	add	sp, sp, #16
Lloh45:
	adrp	x8, _verbose@GOTPAGE
Lloh46:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.18:
	str	x25, [sp, #-16]!
Lloh48:
	adrp	x0, l_.str.9@PAGE
Lloh49:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x21
	bl	_warnx
	add	sp, sp, #16
	b	LBB0_23
LBB0_19:
	ldr	x1, [x19, #8]
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warn
LBB0_20:
	mov	x0, x23
	bl	_fclose
	b	LBB0_23
LBB0_21:
	ldr	x1, [x19, #8]
Lloh52:
	adrp	x0, l_.str.7@PAGE
Lloh53:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_22:
	bl	_warnx
LBB0_23:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_MIN_PID,8,3                    ; @MIN_PID
	.comm	_MAX_PID,8,3                    ; @MAX_PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"daemon"

	.comm	_CE_SIGNALGROUP,4,2             ; @CE_SIGNALGROUP
l_.str.1:                               ; @.str.1
	.asciz	"process-group"

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

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_enforcepid,8,3                 ; @enforcepid
l_.str.3:                               ; @.str.3
	.asciz	"pid file doesn't exist: %s"

l_.str.4:                               ; @.str.4
	.asciz	"can't open pid file: %s"

l_.str.5:                               ; @.str.5
	.asciz	"pid/cmd file is empty: %s"

l_.str.6:                               ; @.str.6
	.asciz	"can't read from pid file: %s"

l_.str.7:                               ; @.str.7
	.asciz	"pid file does not start with a valid number: %s"

l_.str.8:                               ; @.str.8
	.asciz	"bad value '%ld' for process number in %s"

	.comm	_verbose,8,3                    ; @verbose
l_.str.9:                               ; @.str.9
	.asciz	"\t(expecting value between %ld and %ld)"

	.no_dead_strip	_set_swpid
.subsections_via_symbols
