	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_find_pid_file              ## -- Begin function ghb_find_pid_file
	.p2align	4, 0x90
_ghb_find_pid_file:                     ## @ghb_find_pid_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%edi, %edi
	callq	_ghb_get_user_config_dir
	movq	%rax, %r14
	movq	_G_FILE_TEST_IS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_g_file_test
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_g_dir_open
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_g_dir_read_name
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_g_free
	movl	%ebx, %edi
	callq	_close
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_g_dir_read_name
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_sscanf
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_g_strdup_printf
	movq	%rax, %r13
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_F_TLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_lockf
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	movl	%ebx, %edi
	callq	_close
	movq	%r12, %rdi
	callq	_g_dir_close
	movq	%r13, %rdi
	callq	_g_unlink
	movq	%r13, %rdi
	callq	_g_free
	movq	%r14, %rdi
	callq	_g_free
	movl	-44(%rbp), %eax
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	callq	_g_dir_close
LBB0_9:
	movq	%r14, %rdi
	callq	_g_free
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_FILE_TEST_IS_DIR,4,2         ## @G_FILE_TEST_IS_DIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ghb.pid."

L_.str.1:                               ## @.str.1
	.asciz	"ghb.pid.%d"

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_F_TLOCK,4,2                    ## @F_TLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_find_pid_file              ; -- Begin function ghb_find_pid_file
	.p2align	2
_ghb_find_pid_file:                     ; @ghb_find_pid_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x0, #0
	bl	_ghb_get_user_config_dir
	mov	x19, x0
Lloh0:
	adrp	x8, _G_FILE_TEST_IS_DIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_FILE_TEST_IS_DIR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_g_file_test
	cbz	x0, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_g_dir_open
	mov	x20, x0
	bl	_g_dir_read_name
	cbz	x0, LBB0_9
; %bb.2:
	mov	x24, x0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x26, _O_RDWR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _O_RDWR@GOTPAGEOFF]
Lloh9:
	adrp	x27, _F_TLOCK@GOTPAGE
Lloh10:
	ldr	x27, [x27, _F_TLOCK@GOTPAGEOFF]
Lloh11:
	adrp	x23, l_.str.2@PAGE
Lloh12:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_g_free
	mov	x0, x25
	bl	_close
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_g_dir_read_name
	mov	x24, x0
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x21
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #12
	mov	x0, x24
	mov	x1, x22
	bl	_sscanf
	mov	x0, x23
	mov	x1, x19
	mov	x2, x24
	bl	_g_strdup_printf
	mov	x24, x0
	ldr	w1, [x26]
	bl	_open
	mov	x25, x0
	tbnz	w0, #31, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x27]
	mov	x0, x25
	mov	w2, #0
	bl	_lockf
	cbnz	w0, LBB0_3
; %bb.8:
	mov	x0, x25
	bl	_close
	mov	x0, x20
	bl	_g_dir_close
	mov	x0, x24
	bl	_g_unlink
	mov	x0, x24
	bl	_g_free
	mov	x0, x19
	bl	_g_free
	ldr	w0, [sp, #12]
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_g_dir_close
LBB0_10:
	mov	x0, x19
	bl	_g_free
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_G_FILE_TEST_IS_DIR,4,2         ; @G_FILE_TEST_IS_DIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ghb.pid."

l_.str.1:                               ; @.str.1
	.asciz	"ghb.pid.%d"

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_F_TLOCK,4,2                    ; @F_TLOCK
.subsections_via_symbols
