	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function takepid
_takepid:                               ## @takepid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	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), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_fileno
	movq	_LOCK_EX@GOTPCREL(%rip), %rcx
	movq	_LOCK_NB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	%eax, %edi
	callq	_flock
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rdx
	callq	_errx
LBB0_8:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_errx
LBB0_11:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_12:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-64(%rbp), %rax
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_14
## %bb.13:
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_16
LBB0_14:
	movq	_MIN_PID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_16
## %bb.15:
	movq	_MAX_PID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_17
LBB0_16:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	callq	_errx
LBB0_17:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Cannot open pidfile `%s'"

	.comm	_LOCK_EX,4,2                    ## @LOCK_EX
	.comm	_LOCK_NB,4,2                    ## @LOCK_NB
L_.str.2:                               ## @.str.2
	.asciz	"File '%s' can be locked"

	.comm	_errno,8,3                      ## @errno
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
L_.str.3:                               ## @.str.3
	.asciz	"Error while locking file '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"Pidfile `%s' is empty"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot read from pid file `%s'"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid pid in file `%s'"

	.comm	_MIN_PID,8,3                    ## @MIN_PID
	.comm	_MAX_PID,8,3                    ## @MAX_PID
	.no_dead_strip	_takepid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function takepid
_takepid:                               ; @takepid
	.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	x23, x1
	mov	x19, 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	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x21, x0
Lloh10:
	adrp	x25, _STATUS_ERROR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _STATUS_ERROR@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_2:
	cbz	w23, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_fileno
Lloh14:
	adrp	x8, _LOCK_EX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOCK_EX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _LOCK_NB@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LOCK_NB@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_flock
	cbz	x0, LBB0_6
; %bb.4:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.5:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_fclose
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	ldr	w0, [x25]
	mov	x2, x19
	bl	_errx
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_fgets
	cbnz	x0, LBB0_12
; %bb.9:
	mov	x0, x21
	bl	_feof
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_fclose
	ldr	w0, [x25]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_errx
LBB0_11:
	mov	x0, x21
	bl	_fclose
	ldr	w0, [x25]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_12:
	mov	x0, x21
	bl	_fclose
	sub	x1, x29, #80
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	mov	x20, x0
	ldur	x8, [x29, #-80]
	ldrb	w0, [x8]
	cbz	w0, LBB0_14
; %bb.13:
	bl	_isspace
	cbz	w0, LBB0_15
LBB0_14:
Lloh34:
	adrp	x8, _MIN_PID@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MIN_PID@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _MAX_PID@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MAX_PID@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x20, x8
	ccmp	x20, x9, #0, ge
	b.le	LBB0_16
LBB0_15:
	ldr	w0, [x25]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x19
	bl	_errx
LBB0_16:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Cannot open pidfile `%s'"

	.comm	_LOCK_EX,4,2                    ; @LOCK_EX
	.comm	_LOCK_NB,4,2                    ; @LOCK_NB
l_.str.2:                               ; @.str.2
	.asciz	"File '%s' can be locked"

	.comm	_errno,8,3                      ; @errno
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
l_.str.3:                               ; @.str.3
	.asciz	"Error while locking file '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"Pidfile `%s' is empty"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot read from pid file `%s'"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid pid in file `%s'"

	.comm	_MIN_PID,8,3                    ; @MIN_PID
	.comm	_MAX_PID,8,3                    ; @MAX_PID
	.no_dead_strip	_takepid
.subsections_via_symbols
