	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdevlist
_getdevlist:                            ## @getdevlist
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_cam_getccb
	movq	%rax, %rbx
	movq	$0, (%rax)
	movl	$128, 8(%rax)
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	leaq	-80(%rbp), %r12
	leaq	L_.str.5(%rip), %r13
	leaq	LJTI0_0(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cam_send_ccb
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, -80(%rbp)
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	leaq	L_.str.1(%rip), %rsi
	jmpq	*%rax
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -84(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.4(%rip), %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_strcpy
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %r9
	movq	16(%rbx), %rdx
	movl	24(%rbx), %ecx
	movl	28(%rbx), %r8d
	movq	%r12, (%rsp)
	movq	%r13, %rsi
	callq	_fprintf
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.10:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.11:
	movq	$0, (%rbx)
LBB0_12:
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$1, %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	_cam_freeccb
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_XPT_GDEVLIST,4,2               ## @XPT_GDEVLIST
	.comm	_CAM_DIR_NONE,4,2               ## @CAM_DIR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error getting device list"

L_.str.1:                               ## @.str.1
	.asciz	"MORE"

L_.str.2:                               ## @.str.2
	.asciz	"LAST"

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

L_.str.4:                               ## @.str.4
	.asciz	"ERROR"

	.comm	_stdout,4,2                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"%s%d:  generation: %d index: %d status: %s\n"

	.no_dead_strip	_getdevlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdevlist
_getdevlist:                            ; @getdevlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_cam_getccb
	mov	x20, x0
	mov	w19, #0
	str	xzr, [x0]
Lloh3:
	adrp	x23, l_.str.1@PAGE
Lloh4:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh5:
	adrp	x24, _stdout@GOTPAGE
Lloh6:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
	mov	w8, #128
	str	w8, [x0, #8]
Lloh7:
	adrp	x22, l_.str.5@PAGE
Lloh8:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh9:
	adrp	x25, lJTI0_0@PAGE
Lloh10:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh11:
	adrp	x26, l_.str.3@PAGE
Lloh12:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh13:
	adrp	x27, l_.str.2@PAGE
Lloh14:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh15:
	adrp	x28, l_.str.4@PAGE
Lloh16:
	add	x28, x28, l_.str.4@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_cam_send_ccb
	tbnz	x0, #63, LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	wzr, [sp, #8]
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	mov	x1, x23
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x26
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x27
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w19, #1
	mov	x1, x28
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #8
	bl	_strcpy
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	ldr	x2, [x20, #16]
	ldp	w3, w4, [x20, #24]
	ldr	x5, [x20]
	add	x6, sp, #8
	mov	x1, x22
	bl	_fprintf
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_1
; %bb.9:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.10:
	str	xzr, [x20]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w19, #1
LBB0_12:
	mov	x0, x20
	bl	_cam_freeccb
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
                                        ; -- End function
	.comm	_XPT_GDEVLIST,4,2               ; @XPT_GDEVLIST
	.comm	_CAM_DIR_NONE,4,2               ; @CAM_DIR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error getting device list"

l_.str.1:                               ; @.str.1
	.asciz	"MORE"

l_.str.2:                               ; @.str.2
	.asciz	"LAST"

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

l_.str.4:                               ; @.str.4
	.asciz	"ERROR"

	.comm	_stdout,4,2                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"%s%d:  generation: %d index: %d status: %s\n"

	.no_dead_strip	_getdevlist
.subsections_via_symbols
