	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w7090p_tuner_write_serpar
_w7090p_tuner_write_serpar:             ## @w7090p_tuner_write_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
	movq	(%rax), %r12
	movq	$-1000, %rbx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1984, %esi                     ## imm = 0x7C0
	callq	_dib7000p_read_word
	incq	%rbx
	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
	orl	$64, %r12d
	movq	%r13, %rdi
	movl	$1985, %esi                     ## imm = 0x7C1
	movl	%r12d, %edx
	callq	_dib7000p_write_word
	movq	(%r15), %rax
	movl	8(%rax), %edx
	shll	$8, %edx
	orl	16(%rax), %edx
	movq	%r13, %rdi
	movl	$1986, %esi                     ## imm = 0x7C2
	callq	_dib7000p_write_word
	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	"Tuner ITF: write busy (overflow)\n"

	.no_dead_strip	_w7090p_tuner_write_serpar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w7090p_tuner_write_serpar
_w7090p_tuner_write_serpar:             ; @w7090p_tuner_write_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	x21, x1
	bl	_i2c_get_adapdata
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x22, [x8]
	mov	x23, #-1000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #1984
	bl	_dib7000p_read_word
	adds	x23, x23, #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:
	mov	w2, #64
	bfxil	w2, w22, #0, #6
	mov	x0, x20
	mov	w1, #1985
	bl	_dib7000p_write_word
	ldr	x8, [x21]
	ldr	w9, [x8, #8]
	ldr	w8, [x8, #16]
	orr	w2, w8, w9, lsl #8
	mov	x0, x20
	mov	w1, #1986
	bl	_dib7000p_write_word
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tuner ITF: write busy (overflow)\n"

	.no_dead_strip	_w7090p_tuner_write_serpar
.subsections_via_symbols
