	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn8318_probe
_icn8318_probe:                         ## @icn8318_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
	leaq	8(%rdi), %r14
	cmpl	$0, 4(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, %r15
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	20(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_16
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_6:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %r12
	movl	(%r13), %eax
	movl	%eax, 24(%r12)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_icn8318_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_icn8318_stop@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	%r14, (%r12)
	movq	_EV_ABS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %esi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	%r15, %rdx
	addq	$16, %rdx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_touchscreen_parse_properties
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_input_abs_get_max
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_input_abs_get_max
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movq	_ICN8318_MAX_TOUCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INPUT_MT_DIRECT@GOTPCREL(%rip), %rax
	movq	_INPUT_MT_DROP_UNUSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_mt_init_slots
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	%r13, 8(%r15)
	movq	%r12, (%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movl	(%r13), %r9d
	movl	4(%r13), %esi
	movq	_icn8318_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_18:
	movq	(%r15), %rdi
	callq	_icn8318_stop
	movq	%r12, %rdi
	callq	_input_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.19:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error no irq specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"wake"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"Error getting wake gpio: %d\n"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_icn8318_start,4,2              ## @icn8318_start
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
L_.str.3:                               ## @.str.3
	.asciz	"Error touchscreen-size-x and/or -y missing\n"

	.comm	_ICN8318_MAX_TOUCHES,4,2        ## @ICN8318_MAX_TOUCHES
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ## @INPUT_MT_DROP_UNUSED
	.comm	_icn8318_irq,4,2                ## @icn8318_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"Error requesting irq: %d\n"

	.no_dead_strip	_icn8318_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn8318_probe
_icn8318_probe:                         ; @icn8318_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
	add	x19, x0, #8
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x21, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w0, [x21, #20]
	bl	_PTR_ERR
	mov	x23, x0
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.4:
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
	ldr	w8, [x20]
	str	w8, [x0, #24]
Lloh17:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _icn8318_start@GOTPAGE
Lloh21:
	ldr	x9, [x9, _icn8318_start@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh23:
	adrp	x8, _icn8318_stop@GOTPAGE
Lloh24:
	ldr	x8, [x8, _icn8318_stop@GOTPAGEOFF]
	stp	x19, x8, [x0]
Lloh25:
	adrp	x23, _EV_ABS@GOTPAGE
Lloh26:
	ldr	x23, [x23, _EV_ABS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh27:
	adrp	x24, _ABS_MT_POSITION_X@GOTPAGE
Lloh28:
	ldr	x24, [x24, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh29:
	adrp	x23, _ABS_MT_POSITION_Y@GOTPAGE
Lloh30:
	ldr	x23, [x23, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_input_set_capability
	add	x2, x21, #16
	mov	x0, x22
	mov	w1, #1
	bl	_touchscreen_parse_properties
	ldr	w1, [x24]
	mov	x0, x22
	bl	_input_abs_get_max
	cbz	w0, LBB0_16
; %bb.9:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_input_abs_get_max
	cbz	w0, LBB0_16
; %bb.10:
Lloh31:
	adrp	x8, _ICN8318_MAX_TOUCHES@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ICN8318_MAX_TOUCHES@GOTPAGEOFF]
Lloh33:
	adrp	x9, _INPUT_MT_DIRECT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _INPUT_MT_DIRECT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	ldr	w8, [x9]
Lloh37:
	adrp	x9, _INPUT_MT_DROP_UNUSED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _INPUT_MT_DROP_UNUSED@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x22
	bl	_input_mt_init_slots
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.11:
	stp	x22, x20, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_input_set_drvdata
Lloh40:
	adrp	x8, _icn8318_irq@GOTPAGE
Lloh41:
	ldr	x8, [x8, _icn8318_irq@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	ldp	w5, w1, [x20]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_17
; %bb.12:
	mov	x23, x0
	str	x23, [sp]
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_15
LBB0_13:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	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_16:
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_17:
	ldr	x0, [x21]
	bl	_icn8318_stop
	mov	x0, x22
	bl	_input_register_device
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.18:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error no irq specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"wake"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"Error getting wake gpio: %d\n"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_icn8318_start,4,2              ; @icn8318_start
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
l_.str.3:                               ; @.str.3
	.asciz	"Error touchscreen-size-x and/or -y missing\n"

	.comm	_ICN8318_MAX_TOUCHES,4,2        ; @ICN8318_MAX_TOUCHES
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ; @INPUT_MT_DROP_UNUSED
	.comm	_icn8318_irq,4,2                ; @icn8318_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"Error requesting irq: %d\n"

	.no_dead_strip	_icn8318_probe
.subsections_via_symbols
