	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt1070_probe
_qt1070_probe:                          ## @qt1070_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, %r13
	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:
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_qt1070_identify
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	%r13, 24(%r14)
	movq	%r15, (%r14)
	movq	(%r13), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r15)
	leaq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 40(%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	8(%r14), %rax
	movq	%rax, 24(%r15)
	movl	$4, 8(%r15)
	movq	_qt1070_key2code@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r15)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r15), %esi
	callq	___set_bit
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %ecx
	movq	8(%r14), %rdx
	movl	%ecx, (%rdx,%r12,4)
	movl	(%rax,%r12,4), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	incq	%r12
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jl	LBB0_11
LBB0_12:
	movq	_CALIBRATE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_qt1070_write
	movq	_QT1070_CAL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_qt1070_write
	movq	_QT1070_RESET_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_qt1070_interrupt@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_NONE@GOTPCREL(%rip), %rdx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	(%r13), %rdi
	movq	8(%r13), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r14, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_1:
	movq	16(%r13), %rdi
	addq	$8, %r13
	callq	_dev_driver_string
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	addq	$8, %r13
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_8:
	addq	$8, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_input_free_device
	movq	%r14, %rdi
	callq	_kfree
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%r14), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_16
LBB0_18:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	_DET_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_qt1070_read
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.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
L_.str.1:                               ## @.str.1
	.asciz	"please assign the irq to this device\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"insufficient memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"AT42QT1070 QTouch Sensor"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_qt1070_key2code,8,3            ## @qt1070_key2code
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_CALIBRATE_CMD,4,2              ## @CALIBRATE_CMD
	.comm	_QT1070_CAL_TIME,4,2            ## @QT1070_CAL_TIME
	.comm	_RESET,4,2                      ## @RESET
	.comm	_QT1070_RESET_TIME,4,2          ## @QT1070_RESET_TIME
	.comm	_qt1070_interrupt,4,2           ## @qt1070_interrupt
	.comm	_IRQF_TRIGGER_NONE,4,2          ## @IRQF_TRIGGER_NONE
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"fail to request irq\n"

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

	.comm	_DET_STATUS,4,2                 ## @DET_STATUS
	.no_dead_strip	_qt1070_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt1070_probe
_qt1070_probe:                          ; @qt1070_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	x19, 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_5
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_qt1070_identify
	cbz	w0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_9
; %bb.4:
	add	x0, x19, #8
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_5:
	add	x20, x19, #8
	ldr	x0, [x19, #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, x20
	bl	_dev_err
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	add	x0, x19, #8
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_9:
	mov	x22, x19
	ldr	x8, [x22], #8
	str	x21, [x20]
	stp	x8, x19, [x20, #16]
Lloh19:
	adrp	x8, l_.str.3@PAGE
Lloh20:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x21]
	str	x22, [x21, #40]
Lloh21:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	ldr	x8, [x20, #8]
	str	x8, [x21, #24]
	mov	w8, #4
	str	w8, [x21, #8]
Lloh24:
	adrp	x23, _qt1070_key2code@GOTPAGE
Lloh25:
	ldr	x23, [x23, _qt1070_key2code@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	str	w0, [x21, #12]
Lloh26:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w1, [x21, #20]
	bl	___set_bit
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x24, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsl	x9, x24, #2
	ldr	w10, [x8, x9]
	ldr	x11, [x20, #8]
	str	w10, [x11, x9]
	ldr	w0, [x8, x9]
	ldr	w1, [x21, #16]
	bl	___set_bit
	add	x24, x24, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_11
LBB0_12:
Lloh29:
	adrp	x8, _CALIBRATE_CMD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CALIBRATE_CMD@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_qt1070_write
Lloh32:
	adrp	x8, _QT1070_CAL_TIME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QT1070_CAL_TIME@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_msleep
Lloh35:
	adrp	x8, _RESET@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_qt1070_write
Lloh38:
	adrp	x8, _QT1070_RESET_TIME@GOTPAGE
Lloh39:
	ldr	x8, [x8, _QT1070_RESET_TIME@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_msleep
Lloh41:
	adrp	x8, _qt1070_interrupt@GOTPAGE
Lloh42:
	ldr	x8, [x8, _qt1070_interrupt@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _IRQF_TRIGGER_NONE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IRQF_TRIGGER_NONE@GOTPAGEOFF]
Lloh46:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldp	x0, x8, [x19]
	ldr	w4, [x8]
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.13:
	mov	x23, x0
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_16
LBB0_14:
	ldr	x0, [x20]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_18
; %bb.15:
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	x0, [x19]
	mov	x1, x20
	bl	_free_irq
LBB0_16:
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_17:
	mov	x0, x23
	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_18:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh54:
	adrp	x8, _DET_STATUS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DET_STATUS@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qt1070_read
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.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
l_.str.1:                               ; @.str.1
	.asciz	"please assign the irq to this device\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"insufficient memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"AT42QT1070 QTouch Sensor"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_qt1070_key2code,8,3            ; @qt1070_key2code
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_CALIBRATE_CMD,4,2              ; @CALIBRATE_CMD
	.comm	_QT1070_CAL_TIME,4,2            ; @QT1070_CAL_TIME
	.comm	_RESET,4,2                      ; @RESET
	.comm	_QT1070_RESET_TIME,4,2          ; @QT1070_RESET_TIME
	.comm	_qt1070_interrupt,4,2           ; @qt1070_interrupt
	.comm	_IRQF_TRIGGER_NONE,4,2          ; @IRQF_TRIGGER_NONE
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"fail to request irq\n"

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

	.comm	_DET_STATUS,4,2                 ; @DET_STATUS
	.no_dead_strip	_qt1070_probe
.subsections_via_symbols
