	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_keypad_enable
_tc3589x_keypad_enable:                 ## @tc3589x_keypad_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_TC3589x_RSTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TC3589x_KBDRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_TC3589x_KBDMFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TC3589x_KBDMFS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_TC3589x_CLKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KPD_CLK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_TC3589x_RSTINTCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_TC3589x_KBDMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TC3589x_EVT_LOSS_INT@GOTPCREL(%rip), %rax
	movq	_TC3589x_EVT_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	$0, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC3589x_RSTCTRL,4,2            ## @TC3589x_RSTCTRL
	.comm	_TC3589x_KBDRST,4,2             ## @TC3589x_KBDRST
	.comm	_TC3589x_KBDMFS,4,2             ## @TC3589x_KBDMFS
	.comm	_TC3589x_KBDMFS_EN,4,2          ## @TC3589x_KBDMFS_EN
	.comm	_TC3589x_CLKEN,4,2              ## @TC3589x_CLKEN
	.comm	_KPD_CLK_EN,4,2                 ## @KPD_CLK_EN
	.comm	_TC3589x_RSTINTCLR,4,2          ## @TC3589x_RSTINTCLR
	.comm	_TC3589x_KBDMSK,4,2             ## @TC3589x_KBDMSK
	.comm	_TC3589x_EVT_LOSS_INT,4,2       ## @TC3589x_EVT_LOSS_INT
	.comm	_TC3589x_EVT_INT,4,2            ## @TC3589x_EVT_INT
	.no_dead_strip	_tc3589x_keypad_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_keypad_enable
_tc3589x_keypad_enable:                 ; @tc3589x_keypad_enable
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _TC3589x_RSTCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC3589x_RSTCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TC3589x_KBDRST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TC3589x_KBDRST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_tc3589x_set_bits
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _TC3589x_KBDMFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TC3589x_KBDMFS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TC3589x_KBDMFS_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TC3589x_KBDMFS_EN@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_tc3589x_set_bits
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _TC3589x_CLKEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TC3589x_CLKEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _KPD_CLK_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KPD_CLK_EN@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_tc3589x_set_bits
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh18:
	adrp	x8, _TC3589x_RSTINTCLR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TC3589x_RSTINTCLR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	_tc3589x_set_bits
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh21:
	adrp	x8, _TC3589x_KBDMSK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TC3589x_KBDMSK@GOTPAGEOFF]
Lloh23:
	adrp	x9, _TC3589x_EVT_LOSS_INT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TC3589x_EVT_LOSS_INT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _TC3589x_EVT_INT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TC3589x_EVT_INT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	w2, #0
	bl	_tc3589x_set_bits
	tbnz	w0, #31, LBB0_6
; %bb.5:
	str	wzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TC3589x_RSTCTRL,4,2            ; @TC3589x_RSTCTRL
	.comm	_TC3589x_KBDRST,4,2             ; @TC3589x_KBDRST
	.comm	_TC3589x_KBDMFS,4,2             ; @TC3589x_KBDMFS
	.comm	_TC3589x_KBDMFS_EN,4,2          ; @TC3589x_KBDMFS_EN
	.comm	_TC3589x_CLKEN,4,2              ; @TC3589x_CLKEN
	.comm	_KPD_CLK_EN,4,2                 ; @KPD_CLK_EN
	.comm	_TC3589x_RSTINTCLR,4,2          ; @TC3589x_RSTINTCLR
	.comm	_TC3589x_KBDMSK,4,2             ; @TC3589x_KBDMSK
	.comm	_TC3589x_EVT_LOSS_INT,4,2       ; @TC3589x_EVT_LOSS_INT
	.comm	_TC3589x_EVT_INT,4,2            ; @TC3589x_EVT_INT
	.no_dead_strip	_tc3589x_keypad_enable
.subsections_via_symbols
