	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_device
_parse_device:                          ## @parse_device
	.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	8(%rdi), %rbx
	movslq	(%rdi), %rax
	movq	$0, (%rsi)
	movq	_CISTPL_MAX_DEVICES@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	leaq	(%rbx,%rax,4), %r13
	xorl	%r8d, %r8d
	leaq	LJTI0_0(%rip), %rdi
	xorl	%r12d, %r12d
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	(%rbx), %eax
	cmpl	$255, %eax
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	sarl	$4, %eax
	movq	8(%r15), %rdx
	movq	%r12, %r14
	shlq	$4, %r14
	movl	%eax, (%rdx,%r14)
	movl	(%rbx), %eax
	shrl	$3, %eax
	andl	$1, %eax
	movl	%eax, 4(%rdx,%r14)
	movl	(%rbx), %eax
	andl	$7, %eax
	cmpl	$7, %eax
	ja	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%rdi,%rax,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$250, %eax
	jmp	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$200, %eax
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$150, %eax
	jmp	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$100, %eax
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 8(%rdx,%r14)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	4(%rbx), %rax
	cmpq	%r13, %rax
	je	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	cmpl	$255, %eax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	andl	$7, %ecx
	cmpl	$7, %ecx
	je	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	sarl	$3, %eax
	incl	%eax
	addl	%ecx, %ecx
	movl	$512, %esi                      ## imm = 0x200
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	imull	%eax, %esi
	movl	%esi, 12(%rdx,%r14)
	incq	(%r15)
	addq	$8, %rbx
	cmpq	%r13, %rbx
	je	LBB0_22
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%r9), %rax
	cmpq	%rax, %r12
	jl	LBB0_4
	jmp	LBB0_22
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	cmpq	%r13, %rbx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	callq	_SPEED_CVT
	movq	8(%r15), %rdx
	movl	%eax, 8(%rdx,%r14)
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$-128, (%rbx)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	addq	$4, %rbx
	cmpq	%r13, %rbx
	jne	LBB0_13
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r8d, %r8d
	movq	_CISTPL_MAX_DEVICES@GOTPCREL(%rip), %r9
	leaq	LJTI0_0(%rip), %rdi
	jmp	LBB0_18
LBB0_1:
	xorl	%r8d, %r8d
	jmp	LBB0_22
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	subl	(%rax), %r8d
LBB0_22:
	movl	%r8d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-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
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_CISTPL_MAX_DEVICES,4,2         ## @CISTPL_MAX_DEVICES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_device
_parse_device:                          ; @parse_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x20, [x0, #8]
	ldrsw	x8, [x0]
	str	xzr, [x1]
Lloh0:
	adrp	x21, _CISTPL_MAX_DEVICES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CISTPL_MAX_DEVICES@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x19, x1
	mov	x22, #0
	add	x23, x20, x8, lsl #2
	mov	w24, #512
Lloh2:
	adrp	x25, lJTI0_0@PAGE
Lloh3:
	add	x25, x25, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	w8, [x20]
	cmp	w8, #255
	b.eq	LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w9, w8, #4
	ldr	x8, [x19, #8]
	add	x10, x8, x22, lsl #4
	str	w9, [x10]
	ldr	w9, [x20]
	ubfx	w9, w9, #3, #1
	str	w9, [x10, #4]
	ldr	w9, [x20]
	and	x9, x9, #0x7
	cmp	w9, #7
	b.hi	LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x10, LBB0_5
	ldrb	w11, [x25, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #250
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #200
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #150
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #100
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x8, x22, lsl #4
	str	w9, [x10, #8]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x20, #4
	cmp	x9, x23
	b.eq	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x9]
	cmp	w9, #255
	b.eq	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	and	w10, w9, #0x7
	cmp	w10, #7
	b.eq	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	asr	w9, w9, #3
	lsl	w10, w10, #1
	lsl	w10, w24, w10
	madd	w9, w10, w9, w10
	add	x8, x8, x22, lsl #4
	str	w9, [x8, #12]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	add	x20, x20, #8
	cmp	x20, x23
	b.eq	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #4
	cmp	x20, x23
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_SPEED_CVT
	ldr	x8, [x19, #8]
	add	x9, x8, x22, lsl #4
	str	w0, [x9, #8]
LBB0_17:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x20]
	tbz	w9, #7, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x20, x20, #4
	cmp	x20, x23
	b.ne	LBB0_17
LBB0_19:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.comm	_CISTPL_MAX_DEVICES,4,2         ; @CISTPL_MAX_DEVICES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_device
.subsections_via_symbols
