	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_getcurrentfirmwareversion ## -- Begin function saa7164_getcurrentfirmwareversion
	.p2align	4, 0x90
_saa7164_getcurrentfirmwareversion:     ## @saa7164_getcurrentfirmwareversion
	.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	_SAA_DEVICE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa7164_readl
	movl	%eax, %ebx
	movl	%eax, %edx
	shrl	$10, %edx
	andl	$63, %edx
	movl	%eax, %ecx
	shrl	$5, %ecx
	andl	$31, %ecx
	movl	%eax, %r8d
	andl	$31, %r8d
	movl	%eax, %r9d
	shrl	$16, %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA_DEVICE_VERSION,4,2         ## @SAA_DEVICE_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device running firmware version %d.%d.%d.%d (0x%x)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_getcurrentfirmwareversion ; -- Begin function saa7164_getcurrentfirmwareversion
	.p2align	2
_saa7164_getcurrentfirmwareversion:     ; @saa7164_getcurrentfirmwareversion
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SAA_DEVICE_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA_DEVICE_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_saa7164_readl
	mov	x19, x0
	ubfx	w2, w0, #10, #6
	ubfx	w3, w0, #5, #5
	and	w4, w0, #0x1f
	lsr	w5, w0, #16
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x6, x19
	bl	_dprintk
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA_DEVICE_VERSION,4,2         ; @SAA_DEVICE_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device running firmware version %d.%d.%d.%d (0x%x)\n"

.subsections_via_symbols
