	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_set_defaults_ss4_v2
_alps_set_defaults_ss4_v2:              ## @alps_set_defaults_ss4_v2
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_alps_get_otp_values_ss4_v2
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_alps_get_otp_values_ss4_v2
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_alps_update_device_area_ss4_v2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_alps_update_btn_info_ss4_v2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_alps_update_dual_info_ss4_v2
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alps_set_defaults_ss4_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_set_defaults_ss4_v2
_alps_set_defaults_ss4_v2:              ; @alps_set_defaults_ss4_v2
	.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	x20, x1
	mov	x19, x0
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	orr	x2, x21, #0x4
	mov	x0, x19
	mov	w1, #1
	bl	_alps_get_otp_values_ss4_v2
	cbnz	x0, LBB0_2
; %bb.1:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_alps_get_otp_values_ss4_v2
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
LBB0_4:
	add	x0, sp, #8
	mov	x1, x20
	bl	_alps_update_device_area_ss4_v2
	add	x0, sp, #8
	mov	x1, x20
	bl	_alps_update_btn_info_ss4_v2
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_alps_update_dual_info_ss4_v2
	mov	w0, #0
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alps_set_defaults_ss4_v2
.subsections_via_symbols
