	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handsfree_ramp
_handsfree_ramp:                        ## @handsfree_ramp
	.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	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_twl4030_read_reg_cache
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_TWL4030_HF_CTL_REF_EN@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movzbl	%al, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_twl4030_write
	movl	$10, %edi
	callq	_udelay
	movq	_TWL4030_HF_CTL_RAMP_EN@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	movzbl	%bl, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_twl4030_write
	movl	$40, %edi
	callq	_udelay
	movq	_TWL4030_HF_CTL_LOOP_EN@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	movq	_TWL4030_HF_CTL_HB_EN@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	jmp	LBB0_3
LBB0_2:
	movq	_TWL4030_HF_CTL_LOOP_EN@GOTPCREL(%rip), %rcx
	movq	_TWL4030_HF_CTL_HB_EN@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	orb	(%rcx), %dl
	notb	%dl
	andb	%dl, %al
	movzbl	%al, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_twl4030_write
	movq	_TWL4030_HF_CTL_RAMP_EN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%al, %bl
	movzbl	%bl, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_twl4030_write
	movl	$40, %edi
	callq	_udelay
	movq	_TWL4030_HF_CTL_REF_EN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%al, %bl
LBB0_3:
	movzbl	%bl, %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_twl4030_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_HF_CTL_REF_EN,1,0      ## @TWL4030_HF_CTL_REF_EN
	.comm	_TWL4030_HF_CTL_RAMP_EN,1,0     ## @TWL4030_HF_CTL_RAMP_EN
	.comm	_TWL4030_HF_CTL_LOOP_EN,1,0     ## @TWL4030_HF_CTL_LOOP_EN
	.comm	_TWL4030_HF_CTL_HB_EN,1,0       ## @TWL4030_HF_CTL_HB_EN
	.no_dead_strip	_handsfree_ramp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handsfree_ramp
_handsfree_ramp:                        ; @handsfree_ramp
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_twl4030_read_reg_cache
	cbz	w21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TWL4030_HF_CTL_REF_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_HF_CTL_REF_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w21, w8, w0
	and	w2, w21, #0xff
	mov	x0, x20
	mov	x1, x19
	bl	_twl4030_write
	mov	w0, #10
	bl	_udelay
Lloh2:
	adrp	x8, _TWL4030_HF_CTL_RAMP_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TWL4030_HF_CTL_RAMP_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w21, w8, w21
	and	w2, w21, #0xff
	mov	x0, x20
	mov	x1, x19
	bl	_twl4030_write
	mov	w0, #40
	bl	_udelay
Lloh4:
	adrp	x8, _TWL4030_HF_CTL_LOOP_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TWL4030_HF_CTL_LOOP_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w21
Lloh6:
	adrp	x9, _TWL4030_HF_CTL_HB_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TWL4030_HF_CTL_HB_EN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _TWL4030_HF_CTL_LOOP_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TWL4030_HF_CTL_LOOP_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh10:
	adrp	x9, _TWL4030_HF_CTL_HB_EN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TWL4030_HF_CTL_HB_EN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
	bic	w21, w0, w8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_twl4030_write
Lloh12:
	adrp	x8, _TWL4030_HF_CTL_RAMP_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TWL4030_HF_CTL_RAMP_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w21, w21, w8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_twl4030_write
	mov	w0, #40
	bl	_udelay
Lloh14:
	adrp	x8, _TWL4030_HF_CTL_REF_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TWL4030_HF_CTL_REF_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w8, w21, w8
LBB0_3:
	and	w2, w8, #0xff
	mov	x0, x20
	mov	x1, x19
	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	_twl4030_write
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_HF_CTL_REF_EN,1,0      ; @TWL4030_HF_CTL_REF_EN
	.comm	_TWL4030_HF_CTL_RAMP_EN,1,0     ; @TWL4030_HF_CTL_RAMP_EN
	.comm	_TWL4030_HF_CTL_LOOP_EN,1,0     ; @TWL4030_HF_CTL_LOOP_EN
	.comm	_TWL4030_HF_CTL_HB_EN,1,0       ; @TWL4030_HF_CTL_HB_EN
	.no_dead_strip	_handsfree_ramp
.subsections_via_symbols
