	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tca8418_configure
_tca8418_configure:                     ## @tca8418_configure
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	%rdi, %r14
	movl	$-1, %ebx
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	notl	%eax
	movl	%edx, %ecx
	shll	%cl, %ebx
	notl	%ebx
	shll	$8, %ebx
	addl	%eax, %ebx
	movq	_REG_KP_GPIO1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_tca8418_write_byte
	movl	%eax, %r12d
	movq	_REG_KP_GPIO2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %r15d
	sarl	$8, %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_tca8418_write_byte
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_REG_KP_GPIO3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %r12d
	sarl	$16, %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_tca8418_write_byte
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_REG_DEBOUNCE_DIS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_tca8418_write_byte
	movl	%eax, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r13d, %ebx
	movq	_REG_DEBOUNCE_DIS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_tca8418_write_byte
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_REG_DEBOUNCE_DIS3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_tca8418_write_byte
	orl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_REG_CFG@GOTPCREL(%rip), %rax
	movq	_CFG_INT_CFG@GOTPCREL(%rip), %rcx
	movq	_CFG_OVR_FLOW_IEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_CFG_KE_IEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tca8418_write_byte             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_KP_GPIO1,4,2               ## @REG_KP_GPIO1
	.comm	_REG_KP_GPIO2,4,2               ## @REG_KP_GPIO2
	.comm	_REG_KP_GPIO3,4,2               ## @REG_KP_GPIO3
	.comm	_REG_DEBOUNCE_DIS1,4,2          ## @REG_DEBOUNCE_DIS1
	.comm	_REG_DEBOUNCE_DIS2,4,2          ## @REG_DEBOUNCE_DIS2
	.comm	_REG_DEBOUNCE_DIS3,4,2          ## @REG_DEBOUNCE_DIS3
	.comm	_REG_CFG,4,2                    ## @REG_CFG
	.comm	_CFG_INT_CFG,4,2                ## @CFG_INT_CFG
	.comm	_CFG_OVR_FLOW_IEN,4,2           ## @CFG_OVR_FLOW_IEN
	.comm	_CFG_KE_IEN,4,2                 ## @CFG_KE_IEN
	.no_dead_strip	_tca8418_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tca8418_configure
_tca8418_configure:                     ; @tca8418_configure
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #-1
	lsl	w9, w8, w1
	mvn	w9, w9
	lsl	w8, w8, w2
	mvn	w8, w8
	add	w20, w9, w8, lsl #8
Lloh0:
	adrp	x8, _REG_KP_GPIO1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_KP_GPIO1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tca8418_write_byte
	mov	x21, x0
Lloh3:
	adrp	x8, _REG_KP_GPIO2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_KP_GPIO2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	asr	w22, w20, #8
	mov	x0, x19
	mov	x2, x22
	bl	_tca8418_write_byte
	orr	w23, w0, w21
Lloh6:
	adrp	x8, _REG_KP_GPIO3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_KP_GPIO3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	asr	w21, w20, #16
	mov	x0, x19
	mov	x2, x21
	bl	_tca8418_write_byte
	orr	w23, w23, w0
Lloh9:
	adrp	x8, _REG_DEBOUNCE_DIS1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_DEBOUNCE_DIS1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_tca8418_write_byte
	orr	w20, w23, w0
Lloh12:
	adrp	x8, _REG_DEBOUNCE_DIS2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_DEBOUNCE_DIS2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_tca8418_write_byte
	orr	w20, w20, w0
Lloh15:
	adrp	x8, _REG_DEBOUNCE_DIS3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_DEBOUNCE_DIS3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_tca8418_write_byte
	orr	w0, w20, w0
	cbz	w0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh18:
	adrp	x8, _REG_CFG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_CFG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _CFG_INT_CFG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CFG_INT_CFG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _CFG_OVR_FLOW_IEN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CFG_OVR_FLOW_IEN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _CFG_KE_IEN@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CFG_KE_IEN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh29:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tca8418_write_byte
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_KP_GPIO1,4,2               ; @REG_KP_GPIO1
	.comm	_REG_KP_GPIO2,4,2               ; @REG_KP_GPIO2
	.comm	_REG_KP_GPIO3,4,2               ; @REG_KP_GPIO3
	.comm	_REG_DEBOUNCE_DIS1,4,2          ; @REG_DEBOUNCE_DIS1
	.comm	_REG_DEBOUNCE_DIS2,4,2          ; @REG_DEBOUNCE_DIS2
	.comm	_REG_DEBOUNCE_DIS3,4,2          ; @REG_DEBOUNCE_DIS3
	.comm	_REG_CFG,4,2                    ; @REG_CFG
	.comm	_CFG_INT_CFG,4,2                ; @CFG_INT_CFG
	.comm	_CFG_OVR_FLOW_IEN,4,2           ; @CFG_OVR_FLOW_IEN
	.comm	_CFG_KE_IEN,4,2                 ; @CFG_KE_IEN
	.no_dead_strip	_tca8418_configure
.subsections_via_symbols
