	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt2160_probe
_qt2160_probe:                          ## @qt2160_probe
	.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	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_qt2160_identify
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	movq	%r14, 24(%r15)
	movq	%r13, (%r15)
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	_qt2160_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r13)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	8(%r15), %rax
	movq	%rax, 24(%r13)
	movl	$4, 8(%r13)
	movq	_qt2160_key2code@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r13)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r13), %esi
	callq	___set_bit
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r13), %esi
	callq	___clear_bit
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	8(%r15), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	movl	(%rax,%rbx,4), %edi
	movl	16(%r13), %esi
	callq	___set_bit
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r13), %esi
	callq	___clear_bit
	movq	_QT2160_CMD_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_qt2160_write
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	addq	$8, %r14
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_1:
	movq	16(%r14), %rdi
	addq	$8, %r14
	callq	_dev_driver_string
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_6:
	addq	$8, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_21:
	movq	%r13, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_22:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	movq	_qt2160_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	movq	(%r14), %rdx
	addq	$8, %r14
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_15:
	movq	%r15, %rdi
	callq	_qt2160_register_leds
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r12d
	leaq	8(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movq	(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	movl	%eax, %r12d
	leaq	8(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_qt2160_unregister_leds
LBB0_19:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	movq	%r15, %rsi
	callq	_free_irq
	jmp	LBB0_21
LBB0_23:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	callq	_qt2160_schedule_read
	xorl	%r12d, %r12d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ## @I2C_FUNC_SMBUS_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s adapter not supported\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"insufficient memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qt2160_worker,4,2              ## @qt2160_worker
L_.str.2:                               ## @.str.2
	.asciz	"AT42QT2160 Touch Sense Keyboard"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_qt2160_key2code,8,3            ## @qt2160_key2code
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_QT2160_CMD_CALIBRATE,4,2       ## @QT2160_CMD_CALIBRATE
L_.str.3:                               ## @.str.3
	.asciz	"failed to calibrate device\n"

	.comm	_qt2160_irq,4,2                 ## @qt2160_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.4:                               ## @.str.4
	.asciz	"qt2160"

L_.str.5:                               ## @.str.5
	.asciz	"failed to allocate irq %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to register leds\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to register input device\n"

	.no_dead_strip	_qt2160_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt2160_probe
_qt2160_probe:                          ; @qt2160_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_qt2160_identify
	cbz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
	add	x0, x21, #8
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_4:
	add	x19, x21, #8
	ldr	x0, [x21, #16]
	bl	_dev_driver_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_6:
	str	x21, [x19, #24]
	str	x20, [x19]
	add	x0, x19, #16
Lloh16:
	adrp	x8, _qt2160_worker@GOTPAGE
Lloh17:
	ldr	x8, [x8, _qt2160_worker@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh19:
	adrp	x8, l_.str.2@PAGE
Lloh20:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20]
Lloh21:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	ldr	x8, [x19, #8]
	str	x8, [x20, #24]
	mov	w8, #4
	str	w8, [x20, #8]
Lloh24:
	adrp	x22, _qt2160_key2code@GOTPAGE
Lloh25:
	ldr	x22, [x22, _qt2160_key2code@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	str	w0, [x20, #12]
Lloh26:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	___set_bit
Lloh29:
	adrp	x8, _EV_REP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	___clear_bit
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	ldr	x11, [x19, #8]
	str	w10, [x11, x9]
	ldr	w0, [x8, x9]
	ldr	w1, [x20, #16]
	bl	___set_bit
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
Lloh32:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	___clear_bit
Lloh35:
	adrp	x8, _QT2160_CMD_CALIBRATE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QT2160_CMD_CALIBRATE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_qt2160_write
	cbz	w0, LBB0_14
; %bb.10:
	mov	x22, x0
	add	x0, x21, #8
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	bl	_dev_err
LBB0_12:
	mov	x0, x20
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	ldr	x0, [x21]
	cbz	x0, LBB0_17
; %bb.15:
Lloh40:
	adrp	x8, _qt2160_irq@GOTPAGE
Lloh41:
	ldr	x8, [x8, _qt2160_irq@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
Lloh46:
	adrp	x3, l_.str.4@PAGE
Lloh47:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_17
; %bb.16:
	mov	x22, x0
	ldr	x8, [x21], #8
	str	x8, [sp]
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	b	LBB0_11
LBB0_17:
	mov	x0, x19
	bl	_qt2160_register_leds
	cbz	w0, LBB0_19
; %bb.18:
	mov	x22, x0
	add	x0, x21, #8
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	ldr	x0, [x21]
	cbnz	x0, LBB0_21
	b	LBB0_12
LBB0_19:
	ldr	x0, [x19]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_22
; %bb.20:
	add	x0, x21, #8
Lloh52:
	adrp	x1, l_.str.7@PAGE
Lloh53:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_qt2160_unregister_leds
	ldr	x0, [x21]
	cbz	x0, LBB0_12
LBB0_21:
	mov	x1, x19
	bl	_free_irq
	b	LBB0_12
LBB0_22:
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x19
	bl	_qt2160_schedule_read
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ; @I2C_FUNC_SMBUS_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s adapter not supported\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"insufficient memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qt2160_worker,4,2              ; @qt2160_worker
l_.str.2:                               ; @.str.2
	.asciz	"AT42QT2160 Touch Sense Keyboard"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_qt2160_key2code,8,3            ; @qt2160_key2code
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_QT2160_CMD_CALIBRATE,4,2       ; @QT2160_CMD_CALIBRATE
l_.str.3:                               ; @.str.3
	.asciz	"failed to calibrate device\n"

	.comm	_qt2160_irq,4,2                 ; @qt2160_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.4:                               ; @.str.4
	.asciz	"qt2160"

l_.str.5:                               ; @.str.5
	.asciz	"failed to allocate irq %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to register leds\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to register input device\n"

	.no_dead_strip	_qt2160_probe
.subsections_via_symbols
