	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cctl_report_luns
_cctl_report_luns:                      ## @cctl_report_luns
	.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
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %r8
	leaq	-44(%rbp), %r9
	callq	_cctl_get_luns
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_free
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stdout@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	cmpl	$0, -44(%rbp)
	jle	LBB0_12
## %bb.2:
	xorl	%ebx, %ebx
	movq	_RPL_LUNDATA_ATYP_MASK@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_fprintf
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	andl	%esi, %edx
	cmpl	$130, %edx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax), %edx
	cmpl	$-1, %edx
	jne	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_RPL_LUNDATA_FLAT_LUN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	4(%rax), %edx
	movq	_RPL_LUNDATA_FLAT_LUN_BITS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %edx
	orl	%esi, %edx
	cmpl	$-1, %edx
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u LUNs returned\n"

	.comm	_RPL_LUNDATA_ATYP_MASK,4,2      ## @RPL_LUNDATA_ATYP_MASK
	.comm	_RPL_LUNDATA_FLAT_LUN_MASK,4,2  ## @RPL_LUNDATA_FLAT_LUN_MASK
	.comm	_RPL_LUNDATA_FLAT_LUN_BITS,4,2  ## @RPL_LUNDATA_FLAT_LUN_BITS
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported LUN format %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d\n"

	.no_dead_strip	_cctl_report_luns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cctl_report_luns
_cctl_report_luns:                      ; @cctl_report_luns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	xzr, [sp, #8]
	add	x4, sp, #8
	add	x5, sp, #4
	bl	_cctl_get_luns
	mov	x19, x0
	cbz	w0, LBB0_4
LBB0_1:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh0:
	adrp	x22, _stdout@GOTPAGE
Lloh1:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w2, [sp, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:
	mov	x23, #0
Lloh4:
	adrp	x24, _RPL_LUNDATA_ATYP_MASK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _RPL_LUNDATA_ATYP_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x25, _RPL_LUNDATA_FLAT_LUN_MASK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RPL_LUNDATA_FLAT_LUN_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x26, _RPL_LUNDATA_FLAT_LUN_BITS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RPL_LUNDATA_FLAT_LUN_BITS@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	mov	x1, x21
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_fprintf
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [sp, #4]
	cmp	x23, x8
	b.ge	LBB0_1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w9, [x8]
	ldr	w10, [x24]
	and	w2, w10, w9
	cmp	w2, #130
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w2, #128
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x8, #4]
	cmn	w2, #1
	b.ne	LBB0_13
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x25]
	and	w9, w10, w9
	ldr	w8, [x8, #4]
	ldr	w10, [x26]
	lsl	w8, w8, w10
	orr	w2, w8, w9
	cmn	w2, #1
	b.eq	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	b	LBB0_7
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u LUNs returned\n"

	.comm	_RPL_LUNDATA_ATYP_MASK,4,2      ; @RPL_LUNDATA_ATYP_MASK
	.comm	_RPL_LUNDATA_FLAT_LUN_MASK,4,2  ; @RPL_LUNDATA_FLAT_LUN_MASK
	.comm	_RPL_LUNDATA_FLAT_LUN_BITS,4,2  ; @RPL_LUNDATA_FLAT_LUN_BITS
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported LUN format %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d\n"

	.no_dead_strip	_cctl_report_luns
.subsections_via_symbols
