	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8096p_tuner_read_serpar
_dib8096p_tuner_read_serpar:            ## @dib8096p_tuner_read_serpar
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	callq	_i2c_get_adapdata
	movq	%rax, %r13
	movq	(%r15), %rax
	movl	(%rax), %r12d
	movl	$-1000, %ebx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1984, %esi                     ## imm = 0x7C0
	callq	_dib8000_read_word
	incl	%ebx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$2, %al
	jne	LBB0_1
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
LBB0_4:
	andl	$63, %r12d
	movq	%r13, %rdi
	movl	$1985, %esi                     ## imm = 0x7C1
	movl	%r12d, %edx
	callq	_dib8000_write_word
	movl	$-1000, %ebx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1984, %esi                     ## imm = 0x7C0
	callq	_dib8000_read_word
	incl	%ebx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %al
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintk
LBB0_8:
	movq	%r13, %rdi
	movl	$1987, %esi                     ## imm = 0x7C3
	callq	_dib8000_read_word
	movzbl	%ah, %ecx
	movq	8(%r15), %rdx
	movl	%ecx, (%rdx)
	movzbl	%al, %eax
	movl	%eax, 4(%rdx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TunerITF: read busy (overflow)\n"

L_.str.1:                               ## @.str.1
	.asciz	"TunerITF: read busy (empty)\n"

	.no_dead_strip	_dib8096p_tuner_read_serpar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8096p_tuner_read_serpar
_dib8096p_tuner_read_serpar:            ; @dib8096p_tuner_read_serpar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	bl	_i2c_get_adapdata
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w22, [x8]
	mov	w23, #-1000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #1984
	bl	_dib8000_read_word
	adds	w23, w23, #1
	b.hs	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w0, #1, LBB0_1
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
LBB0_4:
	and	w2, w22, #0x3f
	mov	x0, x21
	mov	w1, #1985
	bl	_dib8000_write_word
	mov	w22, #-1000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #1984
	bl	_dib8000_read_word
	adds	w22, w22, #1
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w0, #0, LBB0_5
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_8:
	mov	x0, x21
	mov	w1, #1987
	bl	_dib8000_read_word
	ubfx	w8, w0, #8, #8
	ldr	x9, [x20, #8]
	and	w10, w0, #0xff
	stp	w8, w10, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TunerITF: read busy (overflow)\n"

l_.str.1:                               ; @.str.1
	.asciz	"TunerITF: read busy (empty)\n"

	.no_dead_strip	_dib8096p_tuner_read_serpar
.subsections_via_symbols
