	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_input_configured
_asus_input_configured:                 ## @asus_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	%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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %r15
	callq	_hid_get_drvdata
	movq	%rax, %r12
	movq	_QUIRK_T100CHI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_T100CHI_MOUSE_REPORT_ID@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_2:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	20(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	24(%r12), %rax
	movl	16(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %esi
	movq	24(%r12), %rax
	movl	12(%rax), %edx
	movq	%r15, %rdi
	callq	_input_abs_set_res
	movl	(%rbx), %esi
	movq	24(%r12), %rax
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_input_abs_set_res
	movq	24(%r12), %rax
	cmpl	$5, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	_ABS_TOOL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_TOUCH_MAJOR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_5:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	___set_bit
	movq	_INPUT_PROP_BUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	___set_bit
	movq	24(%r12), %rax
	movl	4(%rax), %esi
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_mt_init_slots
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_err
	jmp	LBB0_11
LBB0_7:
	movq	%r15, 16(%r12)
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r12)
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_asus_kbd_wmi_led_control_present
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_asus_kbd_register_leds
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_warn
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIRK_T100CHI,4,2              ## @QUIRK_T100CHI
	.comm	_T100CHI_MOUSE_REPORT_ID,8,3    ## @T100CHI_MOUSE_REPORT_ID
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_TOOL_WIDTH,4,2             ## @ABS_TOOL_WIDTH
	.comm	_MAX_TOUCH_MAJOR,4,2            ## @MAX_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_MAX_PRESSURE,4,2               ## @MAX_PRESSURE
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ## @INPUT_PROP_BUTTONPAD
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Asus input mt init slots failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize backlight.\n"

	.no_dead_strip	_asus_input_configured
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_input_configured
_asus_input_configured:                 ; @asus_input_configured
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
	bl	_hid_get_drvdata
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QUIRK_T100CHI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QUIRK_T100CHI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _T100CHI_MOUSE_REPORT_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _T100CHI_MOUSE_REPORT_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_2:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_7
; %bb.3:
Lloh6:
	adrp	x22, _ABS_MT_POSITION_X@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w3, [x8, #20]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh8:
	adrp	x23, _ABS_MT_POSITION_Y@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x8, [x21, #24]
	ldr	w3, [x8, #16]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x22]
	ldr	x8, [x21, #24]
	ldr	w2, [x8, #12]
	mov	x0, x20
	bl	_input_abs_set_res
	ldr	w1, [x23]
	ldr	x8, [x21, #24]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_input_abs_set_res
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _ABS_TOOL_WIDTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ABS_TOOL_WIDTH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x22, _MAX_TOUCH_MAJOR@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MAX_TOUCH_MAJOR@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh15:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh18:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MAX_PRESSURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_PRESSURE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_5:
Lloh24:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	___set_bit
Lloh27:
	adrp	x8, _INPUT_PROP_BUTTONPAD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INPUT_PROP_BUTTONPAD@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	___set_bit
	ldr	x8, [x21, #24]
	ldr	w1, [x8, #4]
Lloh30:
	adrp	x8, _INPUT_MT_POINTER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INPUT_MT_POINTER@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_mt_init_slots
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_hid_err
	b	LBB0_12
LBB0_7:
	str	x20, [x21, #16]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_asus_kbd_wmi_led_control_present
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_asus_kbd_register_leds
	cbz	x0, LBB0_11
; %bb.10:
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hid_warn
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIRK_T100CHI,4,2              ; @QUIRK_T100CHI
	.comm	_T100CHI_MOUSE_REPORT_ID,8,3    ; @T100CHI_MOUSE_REPORT_ID
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_TOOL_WIDTH,4,2             ; @ABS_TOOL_WIDTH
	.comm	_MAX_TOUCH_MAJOR,4,2            ; @MAX_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_MAX_PRESSURE,4,2               ; @MAX_PRESSURE
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ; @INPUT_PROP_BUTTONPAD
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Asus input mt init slots failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize backlight.\n"

	.no_dead_strip	_asus_input_configured
.subsections_via_symbols
