	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_input_configured
_rmi_input_configured:                  ## @rmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movq	_RMI_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_dbg
	movq	%r14, %rdi
	callq	_hid_hw_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	%r14, %rdi
	callq	_hid_device_io_start
	movq	_RMI_MODE_ATTN_REPORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rmi_set_mode
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rmi_set_page
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	8(%r15), %rdi
	callq	_rmi_register_transport_device
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	movq	_RMI_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r15
	movq	%r15, %rsi
	callq	_set_bit
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_11:
	movq	%r14, %rdi
	callq	_hid_device_io_stop
	movq	%r14, %rdi
	callq	_hid_hw_close
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_DEVICE,4,2                 ## @RMI_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Opening low level driver\n"

	.comm	_RMI_MODE_ATTN_REPORTS,4,2      ## @RMI_MODE_ATTN_REPORTS
L_.str.1:                               ## @.str.1
	.asciz	"failed to set rmi mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to set page select to 0.\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to register transport driver\n"

	.comm	_RMI_STARTED,4,2                ## @RMI_STARTED
	.no_dead_strip	_rmi_input_configured
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_input_configured
_rmi_input_configured:                  ; @rmi_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
	mov	x20, x1
	mov	x19, x0
	bl	_hid_get_drvdata
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RMI_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RMI_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x8, [x20]
	mov	x22, x0
	str	x8, [x22, #8]!
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_dbg
	mov	x0, x19
	bl	_hid_hw_open
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.2:
	mov	x0, x19
	bl	_hid_device_io_start
Lloh5:
	adrp	x8, _RMI_MODE_ATTN_REPORTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RMI_MODE_ATTN_REPORTS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmi_set_mode
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_rmi_set_page
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x22
	bl	_rmi_register_transport_device
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _RMI_STARTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RMI_STARTED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x21, #4
	bl	_set_bit
	b	LBB0_11
LBB0_6:
	mov	w20, #0
	b	LBB0_12
LBB0_7:
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x19
	bl	_hid_device_io_stop
	mov	x0, x19
	bl	_hid_hw_close
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_DEVICE,4,2                 ; @RMI_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Opening low level driver\n"

	.comm	_RMI_MODE_ATTN_REPORTS,4,2      ; @RMI_MODE_ATTN_REPORTS
l_.str.1:                               ; @.str.1
	.asciz	"failed to set rmi mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to set page select to 0.\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to register transport driver\n"

	.comm	_RMI_STARTED,4,2                ; @RMI_STARTED
	.no_dead_strip	_rmi_input_configured
.subsections_via_symbols
