	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uclparse_target_lun
_uclparse_target_lun:                   ## @uclparse_target_lun
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_UCL_INT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_ucl_object_toint
	movq	%rax, %rbx
	movq	_MAX_LUNS@GOTPCREL(%rip), %rax
	movl	8(%r14), %edx
	cmpq	(%rax), %rbx
	jae	LBB0_12
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rcx
	callq	_asprintf
	movq	_conf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	callq	_lun_new
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_lun_set_scsiname
	movq	(%r14), %rax
	movq	%r15, (%rax,%rbx,8)
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_4:
	movq	_UCL_OBJECT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ucl_object_find_key
	movq	%rax, %r15
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ucl_object_find_key
	testq	%r15, %r15
	je	LBB0_14
## %bb.6:
	movq	%rax, %rbx
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	callq	_ucl_object_toint
	movq	%rax, %r15
	movq	_MAX_LUNS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_18
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.9:
	movq	(%rbx), %rax
	movq	_UCL_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.10:
	movq	_conf@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_ucl_object_tostring
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_lun_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%r15,8)
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
LBB0_13:
	xorl	%eax, %eax
	callq	_log_warnx
	jmp	LBB0_16
LBB0_14:
	movslq	8(%r14), %rsi
	leaq	L_.str.4(%rip), %rdi
LBB0_15:
	xorl	%eax, %eax
	callq	_log_warnx
LBB0_16:
	movl	$1, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	jmp	LBB0_13
LBB0_19:
	movslq	8(%r14), %rsi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_UCL_INT,8,3                    ## @UCL_INT
	.comm	_MAX_LUNS,8,3                   ## @MAX_LUNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LU number %ju in target \"%s\" is too big"

L_.str.1:                               ## @.str.1
	.asciz	"%s,lun,%ju"

	.comm	_conf,4,2                       ## @conf
	.comm	_UCL_OBJECT,8,3                 ## @UCL_OBJECT
L_.str.2:                               ## @.str.2
	.asciz	"number"

L_.str.3:                               ## @.str.3
	.asciz	"name"

L_.str.4:                               ## @.str.4
	.asciz	"lun section in target \"%s\" is missing \"number\" integer property"

	.comm	_UCL_STRING,8,3                 ## @UCL_STRING
L_.str.5:                               ## @.str.5
	.asciz	"lun section in target \"%s\" is missing \"name\" string property"

	.no_dead_strip	_uclparse_target_lun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uclparse_target_lun
_uclparse_target_lun:                   ; @uclparse_target_lun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x23, _UCL_INT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UCL_INT@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_ucl_object_toint
	mov	x20, x0
Lloh2:
	adrp	x8, _MAX_LUNS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_LUNS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w2, [x19, #8]
	cmp	x0, x8
	b.hs	LBB0_12
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	bl	_asprintf
Lloh7:
	adrp	x8, _conf@GOTPAGE
Lloh8:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_lun_new
	cbz	x0, LBB0_17
; %bb.3:
	mov	x21, x0
	ldr	x1, [sp, #8]
	bl	_lun_set_scsiname
	mov	w0, #0
	ldr	x8, [x19]
	str	x21, [x8, x20, lsl #3]
	b	LBB0_18
LBB0_4:
Lloh10:
	adrp	x9, _UCL_OBJECT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UCL_OBJECT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ucl_object_find_key
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ucl_object_find_key
	cbz	x22, LBB0_15
; %bb.6:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.7:
	mov	x21, x0
	mov	x0, x22
	bl	_ucl_object_toint
	mov	x20, x0
Lloh17:
	adrp	x8, _MAX_LUNS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_LUNS@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_19
; %bb.8:
	cbz	x21, LBB0_20
; %bb.9:
	ldr	x8, [x21]
Lloh20:
	adrp	x9, _UCL_STRING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _UCL_STRING@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.10:
Lloh23:
	adrp	x8, _conf@GOTPAGE
Lloh24:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ucl_object_tostring
	mov	x1, x0
	mov	x0, x22
	bl	_lun_find
	cbz	x0, LBB0_17
; %bb.11:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x8, [x9, x20, lsl #3]
	b	LBB0_18
LBB0_12:
	str	x2, [sp]
LBB0_13:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	b	LBB0_18
LBB0_15:
	ldrsw	x1, [x19, #8]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_16:
	bl	_log_warnx
LBB0_17:
	mov	w0, #1
LBB0_18:
	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
	add	sp, sp, #80
	ret
LBB0_19:
	ldr	w8, [x19, #8]
	str	x8, [sp]
	b	LBB0_13
LBB0_20:
	ldrsw	x1, [x19, #8]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_UCL_INT,8,3                    ; @UCL_INT
	.comm	_MAX_LUNS,8,3                   ; @MAX_LUNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LU number %ju in target \"%s\" is too big"

l_.str.1:                               ; @.str.1
	.asciz	"%s,lun,%ju"

	.comm	_conf,4,2                       ; @conf
	.comm	_UCL_OBJECT,8,3                 ; @UCL_OBJECT
l_.str.2:                               ; @.str.2
	.asciz	"number"

l_.str.3:                               ; @.str.3
	.asciz	"name"

l_.str.4:                               ; @.str.4
	.asciz	"lun section in target \"%s\" is missing \"number\" integer property"

	.comm	_UCL_STRING,8,3                 ; @UCL_STRING
l_.str.5:                               ; @.str.5
	.asciz	"lun section in target \"%s\" is missing \"name\" string property"

	.no_dead_strip	_uclparse_target_lun
.subsections_via_symbols
