	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_device_geo
_parse_device_geo:                      ## @parse_device_geo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CISTPL_MAX_DEVICES@GOTPCREL(%rip), %r8
	xorl	%r11d, %r11d
	cmpl	$0, (%r8)
	jle	LBB0_5
## %bb.1:
	movq	8(%rdi), %rax
	movslq	(%rdi), %rcx
	leaq	(%rax,%rcx,4), %r9
	addq	$-24, %r9
	cmpq	%rax, %r9
	jb	LBB0_5
## %bb.2:
	movq	8(%rsi), %r10
	xorl	%edi, %edi
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdi), %ecx
	movl	%ecx, (%r10,%rdi)
	movzbl	4(%rax,%rdi), %ecx
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 4(%r10,%rdi)
	movzbl	8(%rax,%rdi), %ecx
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 8(%r10,%rdi)
	movzbl	12(%rax,%rdi), %ecx
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 12(%r10,%rdi)
	movzbl	16(%rax,%rdi), %ecx
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 16(%r10,%rdi)
	movzbl	20(%rax,%rdi), %ecx
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 20(%r10,%rdi)
	incq	%r11
	movslq	(%r8), %rcx
	cmpq	%rcx, %r11
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%rdi), %rcx
	addq	$24, %rcx
	addq	$24, %rdi
	cmpq	%r9, %rcx
	jbe	LBB0_3
LBB0_5:
	movl	%r11d, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISTPL_MAX_DEVICES,4,2         ## @CISTPL_MAX_DEVICES
	.no_dead_strip	_parse_device_geo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_device_geo
_parse_device_geo:                      ; @parse_device_geo
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldrsw	x9, [x0]
	add	x9, x8, x9, lsl #2
	sub	x9, x9, #24
Lloh0:
	adrp	x10, _CISTPL_MAX_DEVICES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CISTPL_MAX_DEVICES@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w11, #1
	ccmp	x9, x8, #0, ge
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_5
LBB0_2:
	ldr	x11, [x1, #8]
	add	x11, x11, #12
	mov	w12, #1
	mov	w13, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x8]
	stur	w14, [x11, #-12]
	ldr	w14, [x8, #4]
	sub	w14, w14, #1
	lsl	w14, w12, w14
	stur	w14, [x11, #-8]
	ldr	w14, [x8, #8]
	sub	w14, w14, #1
	lsl	w14, w12, w14
	stur	w14, [x11, #-4]
	ldr	w14, [x8, #12]
	sub	w14, w14, #1
	lsl	w14, w12, w14
	str	w14, [x11]
	ldr	w14, [x8, #16]
	sub	w14, w14, #1
	lsl	w14, w12, w14
	str	w14, [x11, #4]
	ldr	w14, [x8, #20]
	sub	w14, w14, #1
	lsl	w14, w12, w14
	str	w14, [x11, #8]
	ldrsw	x14, [x10]
	add	x8, x8, #24
	cmp	x13, x14
	add	x13, x13, #1
	add	x11, x11, #24
	ccmp	x8, x9, #2, lt
	b.ls	LBB0_3
; %bb.4:
	sub	w8, w13, #1
LBB0_5:
	str	w8, [x1]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CISTPL_MAX_DEVICES,4,2         ; @CISTPL_MAX_DEVICES
	.no_dead_strip	_parse_device_geo
.subsections_via_symbols
