	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_powerscan_init
_tda18271_powerscan_init:               ## @tda18271_powerscan_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_R_EP3@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	andb	$-32, (%r15,%rcx)
	movq	(%rax), %rcx
	orb	$18, (%r15,%rcx)
	movq	_R_EP4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	andb	$-4, (%r15,%rdx)
	movq	(%rcx), %rcx
	andb	$-29, (%r15,%rcx)
	movq	(%rax), %rsi
	movl	$2, %edx
	callq	_tda18271_write_regs
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_R_EB18@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	andb	$-4, (%r15,%rcx)
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_R_EB21@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	andb	$-4, (%r15,%rcx)
	movq	_R_EB23@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orb	$4, (%r15,%rdx)
	movq	(%rcx), %rcx
	orb	$2, (%r15,%rcx)
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tda18271_write_regs            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R_EP3,8,3                      ## @R_EP3
	.comm	_R_EP4,8,3                      ## @R_EP4
	.comm	_R_EB18,8,3                     ## @R_EB18
	.comm	_R_EB21,8,3                     ## @R_EB21
	.comm	_R_EB23,8,3                     ## @R_EB23
	.no_dead_strip	_tda18271_powerscan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_powerscan_init
_tda18271_powerscan_init:               ; @tda18271_powerscan_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _R_EP3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_EP3@GOTPAGEOFF]
	ldr	x9, [x8]
	ldrb	w10, [x21, x9]
	and	w10, w10, #0xe0
	strb	w10, [x21, x9]
	ldr	x9, [x8]
	ldrb	w10, [x21, x9]
	mov	w11, #18
	orr	w10, w10, w11
	strb	w10, [x21, x9]
Lloh2:
	adrp	x9, _R_EP4@GOTPAGE
Lloh3:
	ldr	x9, [x9, _R_EP4@GOTPAGEOFF]
	ldr	x10, [x9]
	ldrb	w11, [x21, x10]
	and	w11, w11, #0xfc
	strb	w11, [x21, x10]
	ldr	x9, [x9]
	ldrb	w10, [x21, x9]
	and	w10, w10, #0xffffffe3
	strb	w10, [x21, x9]
	ldr	x1, [x8]
	mov	w2, #2
	bl	_tda18271_write_regs
	mov	x20, x0
	bl	_tda_fail
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _R_EB18@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R_EB18@GOTPAGEOFF]
	ldr	x9, [x8]
	ldrb	w10, [x21, x9]
	and	w10, w10, #0xfc
	strb	w10, [x21, x9]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x20, x0
	bl	_tda_fail
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _R_EB21@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_EB21@GOTPAGEOFF]
	ldr	x9, [x8]
	ldrb	w10, [x21, x9]
	and	w10, w10, #0xfc
	strb	w10, [x21, x9]
Lloh8:
	adrp	x9, _R_EB23@GOTPAGE
Lloh9:
	ldr	x9, [x9, _R_EB23@GOTPAGEOFF]
	ldr	x10, [x9]
	ldrb	w11, [x21, x10]
	orr	w11, w11, #0x4
	strb	w11, [x21, x10]
	ldr	x9, [x9]
	ldrb	w10, [x21, x9]
	orr	w10, w10, #0x2
	strb	w10, [x21, x9]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tda18271_write_regs
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_R_EP3,8,3                      ; @R_EP3
	.comm	_R_EP4,8,3                      ; @R_EP4
	.comm	_R_EB18,8,3                     ; @R_EB18
	.comm	_R_EB21,8,3                     ; @R_EB21
	.comm	_R_EB23,8,3                     ; @R_EB23
	.no_dead_strip	_tda18271_powerscan_init
.subsections_via_symbols
