	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_fwinfo
_get_fwinfo:                            ## @get_fwinfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	leaq	-12(%rbp), %r8
	movl	$-1879047792, %esi              ## imm = 0x90000190
	xorl	%edx, %edx
	movl	$3, %ecx
	callq	_read_by_mnemonic
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	movl	-12(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	leaq	-12(%rbp), %r8
	movq	%rbx, %rdi
	movl	$-2147287036, %esi              ## imm = 0x80030004
	movl	$8, %edx
	movl	$8, %ecx
	callq	_read_by_mnemonic
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %edi
	movl	-12(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	_HYDRA_FIRMWARE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_register
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movl	-12(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movl	-12(%rbp), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chipID=%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"chipVer=%08x\n"

	.comm	_HYDRA_FIRMWARE_VERSION,4,2     ## @HYDRA_FIRMWARE_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"FWVer=%08x\n"

	.no_dead_strip	_get_fwinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_fwinfo
_get_fwinfo:                            ; @get_fwinfo
	.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
	str	wzr, [sp, #12]
	add	x4, sp, #12
	mov	w1, #400
	movk	w1, #36864, lsl #16
	mov	w2, #0
	mov	w3, #3
	bl	_read_by_mnemonic
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	add	x4, sp, #12
	mov	x0, x19
	mov	w1, #4
	movk	w1, #32771, lsl #16
	mov	w2, #8
	mov	w3, #8
	bl	_read_by_mnemonic
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh4:
	adrp	x8, _HYDRA_FIRMWARE_VERSION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HYDRA_FIRMWARE_VERSION@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_read_register
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #12]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	ldr	w8, [sp, #12]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chipID=%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"chipVer=%08x\n"

	.comm	_HYDRA_FIRMWARE_VERSION,4,2     ; @HYDRA_FIRMWARE_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"FWVer=%08x\n"

	.no_dead_strip	_get_fwinfo
.subsections_via_symbols
