	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18250_power_control
_tda18250_power_control:                ## @tda18250_power_control
	.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
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_dev_dbg
	cmpl	$128, %r15d
	je	LBB0_5
## %bb.1:
	cmpl	$129, %r15d
	jne	LBB0_16
## %bb.2:
	movl	(%r14), %edi
	movq	_R06_POWER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movl	(%r14), %edi
	movq	_R25_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$192, %edx
	movl	$192, %ecx
LBB0_4:
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_5:
	movl	4(%r14), %ebx
	movl	(%r14), %edi
	movq	_R25_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$192, %edx
	movl	$128, %ecx
	callq	_regmap_write_bits
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movl	(%r14), %edi
	movq	_R06_POWER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edx
	movl	$2, %ecx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movl	(%r14), %edi
	movq	_R10_LT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movl	$128, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	movl	%eax, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movl	(%r14), %edi
	movq	_R06_POWER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edx
	movl	$1, %ecx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	(%r14), %edi
	movq	_R0D_AGC12@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movl	$3, %edx
	movl	$3, %ecx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movl	(%r14), %edi
	movq	_R10_LT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movl	-28(%rbp), %ecx
	andl	$3, %ecx
	movl	$3, %edx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power state: %d"

	.comm	_R06_POWER2,4,2                 ## @R06_POWER2
	.comm	_R25_REF,4,2                    ## @R25_REF
	.comm	_R10_LT1,4,2                    ## @R10_LT1
	.comm	_R0D_AGC12,4,2                  ## @R0D_AGC12
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tda18250_power_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18250_power_control
_tda18250_power_control:                ; @tda18250_power_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_i2c_get_clientdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_8
; %bb.2:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _R06_POWER2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R06_POWER2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #7
	mov	w3, #0
	bl	_regmap_write_bits
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _R25_REF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R25_REF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #192
	mov	w3, #192
	bl	_regmap_write_bits
	b	LBB0_9
LBB0_4:
	ldp	w0, w20, [x19]
Lloh8:
	adrp	x8, _R25_REF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R25_REF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #192
	mov	w3, #128
	bl	_regmap_write_bits
	cbz	w20, LBB0_10
; %bb.5:
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _R06_POWER2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R06_POWER2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #7
	mov	w3, #2
	bl	_regmap_write_bits
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _R10_LT1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R10_LT1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #128
	mov	w3, #0
	bl	_regmap_write_bits
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #64
	ret
LBB0_10:
	cbnz	w0, LBB0_9
; %bb.11:
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _R06_POWER2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R06_POWER2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #7
	mov	w3, #1
	bl	_regmap_write_bits
	cbnz	w0, LBB0_9
; %bb.12:
	ldr	w0, [x19]
Lloh23:
	adrp	x20, _R0D_AGC12@GOTPAGE
Lloh24:
	ldr	x20, [x20, _R0D_AGC12@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_9
; %bb.13:
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #3
	mov	w3, #3
	bl	_regmap_write_bits
	cbnz	w0, LBB0_9
; %bb.14:
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _R10_LT1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _R10_LT1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #128
	mov	w3, #128
	bl	_regmap_write_bits
	cbnz	w0, LBB0_9
; %bb.15:
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w8, [sp, #12]
	and	w3, w8, #0x3
	mov	w2, #3
	bl	_regmap_write_bits
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power state: %d"

	.comm	_R06_POWER2,4,2                 ; @R06_POWER2
	.comm	_R25_REF,4,2                    ; @R25_REF
	.comm	_R10_LT1,4,2                    ; @R10_LT1
	.comm	_R0D_AGC12,4,2                  ; @R0D_AGC12
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tda18250_power_control
.subsections_via_symbols
