	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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, %r12
	movl	%edi, %r15d
	movq	_DEFAULT_PIDFILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$60, -56(%rbp)                  ## 4-byte Folded Spill
	movl	$30, %ebx
	leaq	L_.str(%rip), %r14
	leaq	LJTI0_0(%rip), %r13
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-80(%rax), %ecx
	cmpl	$36, %ecx
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atoi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atoi
	movl	%eax, %ebx
	jmp	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atoi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_usage
LBB0_12:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_log_init
	leaq	-80(%rbp), %rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$384, %esi                      ## imm = 0x180
	callq	_pidfile_open
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.14:
	movl	-80(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_errx
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_log_err
LBB0_16:
	movq	_ISCSI_PATH@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_22
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_21
## %bb.18:
	leaq	L_.str.3(%rip), %rdi
	callq	_kldload
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.20:
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_22
	jmp	LBB0_21
LBB0_19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
LBB0_21:
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_log_err
LBB0_22:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
## %bb.23:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_daemon
	cmpl	$-1, %eax
	je	LBB0_38
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pidfile_write
	xorl	%eax, %eax
	callq	_register_sigchld
	leaq	-72(%rbp), %r14
	movq	_nchildren@GOTPCREL(%rip), %r13
	leaq	L_.str.9(%rip), %r15
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edi, %edi
	callq	_wait_for_children
	movl	(%r13), %edi
	subl	%eax, %edi
	movl	%edi, (%r13)
	notl	%edi
	shrl	$31, %edi
	callq	_assert
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_ISCSIDWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	$1, %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_err
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_25 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
LBB0_37:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pidfile_close
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_handle_request
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edi, %edi
	callq	_wait_for_children
	movl	(%r13), %edi
	subl	%eax, %edi
	movl	%edi, (%r13)
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	(%r13), %esi
	testl	%ebx, %ebx
	jle	LBB0_34
	.p2align	4, 0x90
## %bb.33:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	%ebx, %esi
	jl	LBB0_34
LBB0_32:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_log_debugx
	movl	$1, %edi
	callq	_wait_for_children
	movl	(%r13), %edi
	subl	%eax, %edi
	movl	%edi, (%r13)
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	(%r13), %esi
	cmpl	%ebx, %esi
	jge	LBB0_32
LBB0_34:                                ##   in Loop: Header=BB0_25 Depth=1
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	incl	(%r13)
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_25 Depth=1
	jne	LBB0_25
	jmp	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	$1, %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_37
LBB0_38:
	leaq	L_.str.5(%rip), %rdi
	callq	_log_warn
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pidfile_remove
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_DEFAULT_PIDFILE,8,3            ## @DEFAULT_PIDFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P:dl:m:t:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
	.comm	_errno,4,2                      ## @errno
	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"daemon already running, pid: %jd."

L_.str.2:                               ## @.str.2
	.asciz	"cannot open or create pidfile \"%s\""

	.comm	_ISCSI_PATH,4,2                 ## @ISCSI_PATH
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"iscsi"

L_.str.4:                               ## @.str.4
	.asciz	"failed to open %s"

L_.str.5:                               ## @.str.5
	.asciz	"cannot daemonize"

L_.str.6:                               ## @.str.6
	.asciz	"waiting for request from the kernel"

	.comm	_ISCSIDWAIT,4,2                 ## @ISCSIDWAIT
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_nchildren,4,2                  ## @nchildren
L_.str.7:                               ## @.str.7
	.asciz	"ISCSIDWAIT"

L_.str.8:                               ## @.str.8
	.asciz	"not forking due to -d flag; will exit after servicing a single request"

L_.str.9:                               ## @.str.9
	.asciz	"maxproc limit of %d child processes hit; waiting for child process to exit"

L_.str.10:                              ## @.str.10
	.asciz	"incoming connection; forking child process #%d"

L_.str.11:                              ## @.str.11
	.asciz	"fork"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x24, x1
	mov	x23, x0
	mov	w26, #0
	mov	w21, #0
Lloh0:
	adrp	x8, _DEFAULT_PIDFILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_PIDFILE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	w19, #60
	mov	w20, #30
Lloh3:
	adrp	x25, l_.str@PAGE
Lloh4:
	add	x25, x25, l_.str@PAGEOFF
Lloh5:
	adrp	x27, lJTI0_0@PAGE
Lloh6:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh7:
	adrp	x28, _optarg@GOTPAGE
Lloh8:
	ldr	x28, [x28, _optarg@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_getopt
	sub	w8, w0, #80
	cmp	w8, #36
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x28]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	mov	w26, #1
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28]
	bl	_atoi
	mov	x21, x0
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28]
	bl	_atoi
	mov	x20, x0
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28]
	bl	_atoi
	mov	x19, x0
	b	LBB0_3
LBB0_10:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w23
	b.eq	LBB0_12
; %bb.11:
	bl	_usage
LBB0_12:
	mov	x0, x21
	bl	_log_init
	add	x2, sp, #24
	mov	x0, x22
	mov	w1, #384
	bl	_pidfile_open
	mov	x21, x0
	cbnz	x0, LBB0_16
; %bb.13:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EEXIST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
	ldr	w2, [sp, #24]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_errx
LBB0_15:
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_16:
Lloh22:
	adrp	x23, _ISCSI_PATH@GOTPAGE
Lloh23:
	ldr	x23, [x23, _ISCSI_PATH@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh24:
	adrp	x24, _O_RDWR@GOTPAGE
Lloh25:
	ldr	x24, [x24, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_22
; %bb.17:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w25, [x8]
Lloh29:
	adrp	x8, _ENOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_21
; %bb.18:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_kldload
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.19:
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_22
	b	LBB0_21
LBB0_20:
Lloh34:
	adrp	x8, _errno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh36:
	str	w25, [x8]
LBB0_21:
	ldr	w8, [x23]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_22:
	cbnz	w26, LBB0_24
; %bb.23:
	mov	w0, #0
	mov	w1, #0
	bl	_daemon
	cmn	w0, #1
	b.eq	LBB0_38
LBB0_24:
	mov	x0, x21
	bl	_pidfile_write
	bl	_register_sigchld
Lloh39:
	adrp	x23, l_.str.6@PAGE
Lloh40:
	add	x23, x23, l_.str.6@PAGEOFF
Lloh41:
	adrp	x28, _ISCSIDWAIT@GOTPAGE
Lloh42:
	ldr	x28, [x28, _ISCSIDWAIT@GOTPAGEOFF]
Lloh43:
	adrp	x25, _nchildren@GOTPAGE
Lloh44:
	ldr	x25, [x25, _nchildren@GOTPAGEOFF]
Lloh45:
	adrp	x24, l_.str.9@PAGE
Lloh46:
	add	x24, x24, l_.str.9@PAGEOFF
Lloh47:
	adrp	x27, _EINTR@GOTPAGE
Lloh48:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	w0, #0
	bl	_wait_for_children
	ldr	w8, [x25]
	sub	w8, w8, w0
	mvn	w9, w8
	str	w8, [x25]
	lsr	w0, w9, #31
	bl	_assert
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	mov	x0, x23
	bl	_log_debugx
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w1, [x28]
	add	x2, sp, #16
	mov	x0, x22
	bl	_ioctl
	cbz	w0, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh49:
	adrp	x8, _errno@GOTPAGE
Lloh50:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w0, #1
Lloh52:
	adrp	x1, l_.str.7@PAGE
Lloh53:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_log_err
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
	cbz	w26, LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh54:
	adrp	x0, l_.str.8@PAGE
Lloh55:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_log_debugx
LBB0_31:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x21
	bl	_pidfile_close
	add	x1, sp, #16
	mov	x0, x22
	mov	x2, x19
	bl	_handle_request
	b	LBB0_26
LBB0_32:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	w0, #0
	bl	_wait_for_children
	ldr	w8, [x25]
	sub	w8, w8, w0
	mvn	w9, w8
	str	w8, [x25]
	lsr	w0, w9, #31
	bl	_assert
	ldr	w8, [x25]
	cmp	w20, #1
	b.lt	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=1
	cmp	w8, w20
	b.lt	LBB0_35
LBB0_34:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x20, [sp]
	mov	x0, x24
	bl	_log_debugx
	mov	w0, #1
	bl	_wait_for_children
	ldr	w8, [x25]
	sub	w8, w8, w0
	mvn	w9, w8
	str	w8, [x25]
	lsr	w0, w9, #31
	bl	_assert
	ldr	w8, [x25]
	cmp	w8, w20
	b.ge	LBB0_34
LBB0_35:                                ;   in Loop: Header=BB0_26 Depth=1
	str	x8, [sp]
Lloh56:
	adrp	x0, l_.str.10@PAGE
Lloh57:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_log_debugx
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	bl	_fork
	tbnz	x0, #63, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_26 Depth=1
	cbnz	x0, LBB0_26
	b	LBB0_31
LBB0_37:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	w0, #1
Lloh58:
	adrp	x1, l_.str.11@PAGE
Lloh59:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_log_err
	b	LBB0_31
LBB0_38:
Lloh60:
	adrp	x0, l_.str.5@PAGE
Lloh61:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_log_warn
	mov	x0, x21
	bl	_pidfile_remove
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_DEFAULT_PIDFILE,8,3            ; @DEFAULT_PIDFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P:dl:m:t:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
	.comm	_errno,4,2                      ; @errno
	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"daemon already running, pid: %jd."

l_.str.2:                               ; @.str.2
	.asciz	"cannot open or create pidfile \"%s\""

	.comm	_ISCSI_PATH,4,2                 ; @ISCSI_PATH
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"iscsi"

l_.str.4:                               ; @.str.4
	.asciz	"failed to open %s"

l_.str.5:                               ; @.str.5
	.asciz	"cannot daemonize"

l_.str.6:                               ; @.str.6
	.asciz	"waiting for request from the kernel"

	.comm	_ISCSIDWAIT,4,2                 ; @ISCSIDWAIT
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_nchildren,4,2                  ; @nchildren
l_.str.7:                               ; @.str.7
	.asciz	"ISCSIDWAIT"

l_.str.8:                               ; @.str.8
	.asciz	"not forking due to -d flag; will exit after servicing a single request"

l_.str.9:                               ; @.str.9
	.asciz	"maxproc limit of %d child processes hit; waiting for child process to exit"

l_.str.10:                              ; @.str.10
	.asciz	"incoming connection; forking child process #%d"

l_.str.11:                              ; @.str.11
	.asciz	"fork"

.subsections_via_symbols
