	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function creative_sb0540_input_configured
_creative_sb0540_input_configured:      ## @creative_sb0540_input_configured
	.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	(%rsi), %r12
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movq	%r12, 8(%rax)
	movq	(%rax), %rdi
	movq	%rdi, 24(%r12)
	movl	$2, (%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r12)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r14d
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r14d, %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movq	(%r15), %rdi
	movq	_creative_sb0540_key_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	16(%r12), %esi
	callq	_set_bit
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r12), %esi
	callq	_clear_bit
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_creative_sb0540_key_table,8,3  ## @creative_sb0540_key_table
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.no_dead_strip	_creative_sb0540_input_configured
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function creative_sb0540_input_configured
_creative_sb0540_input_configured:      ; @creative_sb0540_input_configured
	.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
	ldr	x21, [x1]
	bl	_hid_get_drvdata
	mov	x19, x0
	str	x21, [x0, #8]
	ldr	x0, [x0]
	str	x0, [x21, #24]
	mov	w8, #2
	str	w8, [x21]
	bl	_ARRAY_SIZE
	str	w0, [x21, #4]
Lloh0:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh3:
	adrp	x8, _EV_REP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w20
	ldr	x9, [x21, #8]
	str	w8, [x9]
	ldr	x0, [x19]
Lloh6:
	adrp	x20, _creative_sb0540_key_table@GOTPAGE
Lloh7:
	ldr	x20, [x20, _creative_sb0540_key_table@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x21, #16]
	bl	_set_bit
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	_clear_bit
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_creative_sb0540_key_table,8,3  ; @creative_sb0540_key_table
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.no_dead_strip	_creative_sb0540_input_configured
.subsections_via_symbols
