	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_get_platform_info
_velocity_get_platform_info:            ## @velocity_get_platform_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, (%r15)
LBB0_2:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	leaq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_6
LBB0_4:
	movl	-32(%rbp), %eax
	movl	%eax, 16(%r15)
	leaq	-32(%rbp), %rdi
	callq	_resource_size
	movq	_VELOCITY_IO_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no-eeprom"

L_.str.1:                               ## @.str.1
	.asciz	"unable to find memory address\n"

	.comm	_VELOCITY_IO_SIZE,8,3           ## @VELOCITY_IO_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"memory region is too small.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_velocity_get_platform_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_get_platform_info
_velocity_get_platform_info:            ; @velocity_get_platform_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_of_address_to_resource
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_4:
	ldr	w8, [sp, #8]
	str	w8, [x19, #16]
	add	x0, sp, #8
	bl	_resource_size
Lloh4:
	adrp	x8, _VELOCITY_IO_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VELOCITY_IO_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no-eeprom"

l_.str.1:                               ; @.str.1
	.asciz	"unable to find memory address\n"

	.comm	_VELOCITY_IO_SIZE,8,3           ; @VELOCITY_IO_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"memory region is too small.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_velocity_get_platform_info
.subsections_via_symbols
