	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_get_version
_as3722_get_version:                    ## @as3722_get_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_AS3722_ASIC_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_RD1
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdx
	movq	_AS3722_DEVICE_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
## %bb.4:
	movq	_AS3722_ASIC_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_RD1
	testl	%eax, %eax
	jne	LBB0_1
## %bb.5:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_device_printf
	jmp	LBB0_7
LBB0_3:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AS3722_ASIC_ID1,4,2            ## @AS3722_ASIC_ID1
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_AS3722_DEVICE_ID,8,3           ## @AS3722_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid chip ID is 0x%x\n"

	.comm	_AS3722_ASIC_ID2,4,2            ## @AS3722_ASIC_ID2
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"AS3722 rev: 0x%x\n"

	.no_dead_strip	_as3722_get_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_get_version
_as3722_get_version:                    ; @as3722_get_version
	.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
Lloh0:
	adrp	x8, _AS3722_ASIC_ID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AS3722_ASIC_ID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_RD1
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x2, [sp, #8]
Lloh3:
	adrp	x8, _AS3722_DEVICE_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AS3722_DEVICE_ID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _AS3722_ASIC_ID2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AS3722_ASIC_ID2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_RD1
	cbnz	w0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _bootverbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	x2, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_7:
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AS3722_ASIC_ID1,4,2            ; @AS3722_ASIC_ID1
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_AS3722_DEVICE_ID,8,3           ; @AS3722_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid chip ID is 0x%x\n"

	.comm	_AS3722_ASIC_ID2,4,2            ; @AS3722_ASIC_ID2
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"AS3722 rev: 0x%x\n"

	.no_dead_strip	_as3722_get_version
.subsections_via_symbols
