	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_identify_module
_tda1997x_identify_module:              ## @tda1997x_identify_module
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	40(%rdi), %r14
	movq	_REG_CMTP_REG10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_read
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %ecx
	shrl	$5, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, %ecx
	shrl	%ecx
	andl	$1, %ecx
	movl	%ecx, 12(%rbx)
	shrl	$4, %eax
	andl	$3, %eax
	leal	-2(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	movq	_TDA19973@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_TDA19971@GOTPCREL(%rip), %rax
LBB0_6:
	movq	32(%rbx), %rcx
	movl	(%rcx), %ecx
	cmpl	(%rax), %ecx
	jne	LBB0_7
## %bb.8:
	movq	_REG_CMTP_REG11@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_read
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_4:
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CMTP_REG10,4,2             ## @REG_CMTP_REG10
	.comm	_TDA19971,4,2                   ## @TDA19971
	.comm	_TDA19973,4,2                   ## @TDA19973
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported chip ID\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"chip id mismatch\n"

	.comm	_REG_CMTP_REG11,4,2             ## @REG_CMTP_REG11
	.no_dead_strip	_tda1997x_identify_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function tda1997x_identify_module
lCPI0_0:
	.long	4294967290                      ; 0xfffffffa
	.long	4294967291                      ; 0xfffffffb
	.long	4294967294                      ; 0xfffffffe
	.long	4294967295                      ; 0xffffffff
lCPI0_1:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tda1997x_identify_module:              ; @tda1997x_identify_module
	.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
	mov	x19, x0
	add	x20, x0, #40
Lloh0:
	adrp	x8, _REG_CMTP_REG10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CMTP_REG10@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_io_read
	dup.4s	v0, w0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	q1, [x8, lCPI0_1@PAGEOFF]
	and.16b	v0, v0, v1
	str	q0, [x19]
	ubfx	w8, w0, #4, #2
	sub	w9, w8, #2
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _TDA19973@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TDA19973@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cbnz	w8, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _TDA19971@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TDA19971@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	ldr	x9, [x19, #32]
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _REG_CMTP_REG11@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_CMTP_REG11@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_io_read
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #24]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	bl	_dev_err
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CMTP_REG10,4,2             ; @REG_CMTP_REG10
	.comm	_TDA19971,4,2                   ; @TDA19971
	.comm	_TDA19973,4,2                   ; @TDA19973
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported chip ID\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"chip id mismatch\n"

	.comm	_REG_CMTP_REG11,4,2             ; @REG_CMTP_REG11
	.no_dead_strip	_tda1997x_identify_module
.subsections_via_symbols
