	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm8323_configure
_lm8323_configure:                      ## @lm8323_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CLK_SLOWCLKEN@GOTPCREL(%rip), %rax
	movq	_CLK_RCPWM_EXTERNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	(%rdi), %r15d
	movl	8(%rdi), %r14d
	sarl	$2, %r14d
	orl	(%rax), %r12d
	shll	$4, %r15d
	orl	4(%rdi), %r15d
	movq	_LM8323_CMD_WRITE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %esi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_lm8323_write
	movq	_LM8323_CMD_WRITE_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_lm8323_write
	movq	_LM8323_CMD_SET_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_lm8323_write
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_lm8323_set_active_time
	movq	_LM8323_CMD_SET_DEBOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_lm8323_write
	movq	_LM8323_CMD_WRITE_PORT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$255, %ecx
	movl	$255, %r8d
	xorl	%eax, %eax
	callq	_lm8323_write
	movq	_LM8323_CMD_WRITE_PORT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_lm8323_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK_SLOWCLKEN,4,2              ## @CLK_SLOWCLKEN
	.comm	_CLK_RCPWM_EXTERNAL,4,2         ## @CLK_RCPWM_EXTERNAL
	.comm	_LM8323_CMD_WRITE_CFG,4,2       ## @LM8323_CMD_WRITE_CFG
	.comm	_LM8323_CMD_WRITE_CLOCK,4,2     ## @LM8323_CMD_WRITE_CLOCK
	.comm	_LM8323_CMD_SET_KEY_SIZE,4,2    ## @LM8323_CMD_SET_KEY_SIZE
	.comm	_LM8323_CMD_SET_DEBOUNCE,4,2    ## @LM8323_CMD_SET_DEBOUNCE
	.comm	_LM8323_CMD_WRITE_PORT_STATE,4,2 ## @LM8323_CMD_WRITE_PORT_STATE
	.comm	_LM8323_CMD_WRITE_PORT_SEL,4,2  ## @LM8323_CMD_WRITE_PORT_SEL
	.no_dead_strip	_lm8323_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm8323_configure
_lm8323_configure:                      ; @lm8323_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CLK_SLOWCLKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLK_SLOWCLKEN@GOTPAGEOFF]
	ldp	w9, w10, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x11, _CLK_RCPWM_EXTERNAL@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CLK_RCPWM_EXTERNAL@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	ldr	w12, [x0, #8]
	asr	w20, w12, #2
	orr	w21, w11, w8
	orr	w22, w10, w9, lsl #4
Lloh6:
	adrp	x8, _LM8323_CMD_WRITE_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LM8323_CMD_WRITE_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #2
	mov	w3, #0
	bl	_lm8323_write
Lloh9:
	adrp	x8, _LM8323_CMD_WRITE_CLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LM8323_CMD_WRITE_CLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	x3, x21
	bl	_lm8323_write
Lloh12:
	adrp	x8, _LM8323_CMD_SET_KEY_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LM8323_CMD_SET_KEY_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	x3, x22
	bl	_lm8323_write
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_lm8323_set_active_time
Lloh15:
	adrp	x8, _LM8323_CMD_SET_DEBOUNCE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LM8323_CMD_SET_DEBOUNCE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	x3, x20
	bl	_lm8323_write
Lloh18:
	adrp	x8, _LM8323_CMD_WRITE_PORT_STATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LM8323_CMD_WRITE_PORT_STATE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w8, #255
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #3
	mov	w3, #255
	bl	_lm8323_write
Lloh21:
	adrp	x8, _LM8323_CMD_WRITE_PORT_SEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LM8323_CMD_WRITE_PORT_SEL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #3
	mov	w3, #0
	bl	_lm8323_write
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK_SLOWCLKEN,4,2              ; @CLK_SLOWCLKEN
	.comm	_CLK_RCPWM_EXTERNAL,4,2         ; @CLK_RCPWM_EXTERNAL
	.comm	_LM8323_CMD_WRITE_CFG,4,2       ; @LM8323_CMD_WRITE_CFG
	.comm	_LM8323_CMD_WRITE_CLOCK,4,2     ; @LM8323_CMD_WRITE_CLOCK
	.comm	_LM8323_CMD_SET_KEY_SIZE,4,2    ; @LM8323_CMD_SET_KEY_SIZE
	.comm	_LM8323_CMD_SET_DEBOUNCE,4,2    ; @LM8323_CMD_SET_DEBOUNCE
	.comm	_LM8323_CMD_WRITE_PORT_STATE,4,2 ; @LM8323_CMD_WRITE_PORT_STATE
	.comm	_LM8323_CMD_WRITE_PORT_SEL,4,2  ; @LM8323_CMD_WRITE_PORT_SEL
	.no_dead_strip	_lm8323_configure
.subsections_via_symbols
