	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_audio_set_resource
_twl4030_audio_set_resource:            ## @twl4030_audio_set_resource
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_twl4030_audio_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	_TWL4030_MODULE_AUDIO_VOICE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rax), %rax
	movl	%r15d, %r15d
	movl	4(%rax,%r15,8), %edx
	leaq	-36(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movq	(%rbx), %rax
	movl	(%rax,%r15,8), %esi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orl	-36(%rbp), %esi
	jmp	LBB0_3
LBB0_2:
	notl	%esi
	andl	-36(%rbp), %esi
LBB0_3:
	movl	%esi, -36(%rbp)
	movl	(%r12), %edi
	movl	4(%rax,%r15,8), %edx
	callq	_twl_i2c_write_u8
	movl	-36(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_twl4030_audio_dev,4,2          ## @twl4030_audio_dev
	.comm	_TWL4030_MODULE_AUDIO_VOICE,4,2 ## @TWL4030_MODULE_AUDIO_VOICE
	.no_dead_strip	_twl4030_audio_set_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_audio_set_resource
_twl4030_audio_set_resource:            ; @twl4030_audio_set_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _twl4030_audio_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _twl4030_audio_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_platform_get_drvdata
	mov	x21, x0
Lloh3:
	adrp	x22, _TWL4030_MODULE_AUDIO_VOICE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TWL4030_MODULE_AUDIO_VOICE@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x21]
	mov	w20, w20
	lsl	x23, x20, #3
	add	x8, x8, x23
	ldr	w2, [x8, #4]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	ldr	x8, [x21]
	ldr	w9, [x8, x23]
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w10, [sp, #12]
	orr	w1, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [sp, #12]
	bic	w1, w10, w9
LBB0_3:
	str	w1, [sp, #12]
	ldr	w0, [x22]
	add	x8, x8, x20, lsl #3
	ldr	w2, [x8, #4]
	bl	_twl_i2c_write_u8
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_twl4030_audio_dev,4,2          ; @twl4030_audio_dev
	.comm	_TWL4030_MODULE_AUDIO_VOICE,4,2 ; @TWL4030_MODULE_AUDIO_VOICE
	.no_dead_strip	_twl4030_audio_set_resource
.subsections_via_symbols
