	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_queue                     ## -- Begin function load_queue
	.p2align	4, 0x90
_load_queue:                            ## @load_queue
	.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	%rdi, %rbx
	movl	$4, %esi
	callq	_bzero
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_LIST_INIT
	movq	_config@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_opendir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EX_NOINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_2:
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r14
	leaq	-64(%rbp), %r13
	movl	$-1, %r15d
	jmp	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_readqueuef
	testq	%rax, %rax
	je	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rax)
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	(%r14), %rcx
	cmpb	$81, (%rcx)
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edx
	incq	%rcx
	leaq	-56(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edx
	movq	(%r14), %rcx
	incq	%rcx
	leaq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_syslog
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_free
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_free
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-64(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_18:
	movq	%rbx, %rdi
	callq	_closedir
	xorl	%r15d, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config,4,2                     ## @config
	.comm	_EX_NOINPUT,4,2                 ## @EX_NOINPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading queue"

L_.str.1:                               ## @.str.1
	.asciz	"%s/Q%s"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"could not pick up queue file: `%s'/`%s': %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_queue                     ; -- Begin function load_queue
	.p2align	2
_load_queue:                            ; @load_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	mov	w1, #4
	bl	_bzero
	mov	x0, x19
	bl	_LIST_INIT
Lloh0:
	adrp	x25, _config@GOTPAGE
Lloh1:
	ldr	x25, [x25, _config@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_opendir
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EX_NOINPUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EX_NOINPUT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.3:
	mov	x24, x0
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh11:
	adrp	x26, _EINVAL@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
Lloh13:
	adrp	x27, _errno@GOTPAGE
Lloh14:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh15:
	adrp	x28, _LOG_INFO@GOTPAGE
Lloh16:
	ldr	x28, [x28, _LOG_INFO@GOTPAGEOFF]
Lloh17:
	adrp	x23, l_.str.3@PAGE
Lloh18:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_readqueuef
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x0]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #8]
	ldr	x8, [x24]
	ldrb	w9, [x8]
	cmp	w9, #81
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x25]
	add	x3, x8, #1
	add	x0, sp, #16
	mov	x1, x21
	bl	_asprintf
	tbnz	x0, #63, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x25]
	ldr	x8, [x24]
	add	x3, x8, #1
	add	x0, sp, #8
	mov	x1, x22
	bl	_asprintf
	tbnz	x0, #63, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #16]
	add	x1, sp, #24
	bl	_stat
	cbz	x0, LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	ldp	x3, x2, [sp, #8]
	mov	x1, x23
	bl	_syslog
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_free
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_free
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [sp, #24]
	bl	_S_ISREG
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
	add	x1, sp, #24
	bl	_stat
	cbnz	x0, LBB0_11
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	str	w8, [x27]
	b	LBB0_11
LBB0_18:
	mov	x0, x20
	bl	_closedir
	mov	w0, #0
	b	LBB0_20
LBB0_19:
	mov	w0, #-1
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_config,4,2                     ; @config
	.comm	_EX_NOINPUT,4,2                 ; @EX_NOINPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading queue"

l_.str.1:                               ; @.str.1
	.asciz	"%s/Q%s"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"could not pick up queue file: `%s'/`%s': %m"

.subsections_via_symbols
