	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1004x_sleep
_tda1004x_sleep:                        ## @tda1004x_sleep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.2:
	movq	_TDA1004X_CONFADC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	jmp	LBB0_6
LBB0_3:
	movq	_TDA10046H_CONF_TRISTATE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_tda1004x_write_byteI
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movq	_TDA10046_GP00_I@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_5
## %bb.4:
	movq	_TDA10046H_CONF_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$15, %ecx
	xorl	$10, %ecx
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_tda1004x_write_mask
LBB0_5:
	movq	_TDA1004X_CONFADC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$192, %edx
	movl	$192, %ecx
	callq	_tda1004x_write_mask
	movq	_TDA1004X_CONFC4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
LBB0_6:
	callq	_tda1004x_write_mask
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA1004X_CONFADC1,4,2          ## @TDA1004X_CONFADC1
	.comm	_TDA10046H_CONF_TRISTATE1,4,2   ## @TDA10046H_CONF_TRISTATE1
	.comm	_TDA10046_GP00_I,4,2            ## @TDA10046_GP00_I
	.comm	_TDA10046H_CONF_POLARITY,4,2    ## @TDA10046H_CONF_POLARITY
	.comm	_TDA1004X_CONFADC2,4,2          ## @TDA1004X_CONFADC2
	.comm	_TDA1004X_CONFC4,4,2            ## @TDA1004X_CONFC4
	.no_dead_strip	_tda1004x_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1004x_sleep
_tda1004x_sleep:                        ; @tda1004x_sleep
	.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
	ldr	x19, [x0]
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _TDA1004X_CONFADC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDA1004X_CONFADC1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	mov	w3, #16
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _TDA10046H_CONF_TRISTATE1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDA10046H_CONF_TRISTATE1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_tda1004x_write_byteI
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TDA10046_GP00_I@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TDA10046_GP00_I@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _TDA10046H_CONF_POLARITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDA10046H_CONF_POLARITY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	and	w8, w8, #0xf
	mov	w9, #10
	eor	w3, w8, w9
	mov	x0, x19
	mov	w2, #15
	bl	_tda1004x_write_mask
LBB0_5:
Lloh12:
	adrp	x8, _TDA1004X_CONFADC2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TDA1004X_CONFADC2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #192
	mov	w3, #192
	bl	_tda1004x_write_mask
Lloh15:
	adrp	x8, _TDA1004X_CONFC4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TDA1004X_CONFC4@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
LBB0_6:
	bl	_tda1004x_write_mask
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA1004X_CONFADC1,4,2          ; @TDA1004X_CONFADC1
	.comm	_TDA10046H_CONF_TRISTATE1,4,2   ; @TDA10046H_CONF_TRISTATE1
	.comm	_TDA10046_GP00_I,4,2            ; @TDA10046_GP00_I
	.comm	_TDA10046H_CONF_POLARITY,4,2    ; @TDA10046H_CONF_POLARITY
	.comm	_TDA1004X_CONFADC2,4,2          ; @TDA1004X_CONFADC2
	.comm	_TDA1004X_CONFC4,4,2            ; @TDA1004X_CONFC4
	.no_dead_strip	_tda1004x_sleep
.subsections_via_symbols
