	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn8505_probe
_icn8505_probe:                         ## @icn8505_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rdi), %r14
	cmpl	$0, 4(%rdi)
	je	LBB0_9
## %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_8
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r12
	movl	(%r13), %eax
	movl	%eax, 4(%r12)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%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), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_LEFTMETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	%r13, 16(%r15)
	movq	%r12, 8(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_icn8505_probe_acpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r15, %rdi
	callq	_icn8505_upload_fw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	_ICN8505_REG_CONFIGDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_icn8505_read_data
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %edi
	callq	_le16_to_cpu
	leaq	-1(%rax), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	leaq	-1(%rax), %rcx
	movq	%r12, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	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_19
## %bb.15:
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_input_abs_get_max
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movq	_ICN8505_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_12
## %bb.17:
	movl	(%r13), %r9d
	movl	4(%r13), %esi
	movq	_icn8505_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_20
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_19:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_20:
	movq	%r12, %rdi
	callq	_input_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.21:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No irq specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.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
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_LEFTMETA,4,2               ## @KEY_LEFTMETA
	.comm	_ICN8505_REG_CONFIGDATA,4,2     ## @ICN8505_REG_CONFIGDATA
L_.str.1:                               ## @.str.1
	.asciz	"Error reading resolution: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error touchscreen-size-x and/or -y missing\n"

	.comm	_ICN8505_MAX_TOUCHES,4,2        ## @ICN8505_MAX_TOUCHES
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ## @INPUT_MT_DROP_UNUSED
	.comm	_icn8505_irq,4,2                ## @icn8505_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"Error requesting irq: %d\n"

	.no_dead_strip	_icn8505_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn8505_probe
_icn8505_probe:                         ; @icn8505_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x19, x0, #8
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _BUS_I2C@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUS_I2C@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
Lloh9:
	adrp	x23, _EV_ABS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EV_ABS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh11:
	adrp	x25, _ABS_MT_POSITION_X@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh13:
	adrp	x24, _ABS_MT_POSITION_Y@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_input_set_capability
Lloh15:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _KEY_LEFTMETA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KEY_LEFTMETA@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	stp	x22, x20, [x21, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_input_set_drvdata
	mov	x0, x21
	mov	x1, x19
	bl	_icn8505_probe_acpi
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x21
	bl	_icn8505_upload_fw
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.5:
Lloh21:
	adrp	x8, _ICN8505_REG_CONFIGDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICN8505_REG_CONFIGDATA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #8
	bl	_icn8505_read_data
	cbz	w0, LBB0_13
; %bb.6:
	mov	x23, x0
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_7:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	ldr	x8, [sp, #24]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.12:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w23, [x25]
	ldr	w0, [sp, #16]
	bl	_le16_to_cpu
	sub	x3, x0, #1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w23, [x24]
	ldr	w0, [sp, #20]
	bl	_le16_to_cpu
	sub	x3, x0, #1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x22
	mov	w1, #1
	mov	x2, x21
	bl	_touchscreen_parse_properties
	ldr	w1, [x25]
	mov	x0, x22
	bl	_input_abs_get_max
	cbz	w0, LBB0_18
; %bb.14:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_input_abs_get_max
	cbz	w0, LBB0_18
; %bb.15:
Lloh35:
	adrp	x8, _ICN8505_MAX_TOUCHES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ICN8505_MAX_TOUCHES@GOTPAGEOFF]
Lloh37:
	adrp	x9, _INPUT_MT_DIRECT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _INPUT_MT_DIRECT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	ldr	w8, [x9]
Lloh41:
	adrp	x9, _INPUT_MT_DROP_UNUSED@GOTPAGE
Lloh42:
	ldr	x9, [x9, _INPUT_MT_DROP_UNUSED@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x22
	bl	_input_mt_init_slots
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.16:
Lloh44:
	adrp	x8, _icn8505_irq@GOTPAGE
Lloh45:
	ldr	x8, [x8, _icn8505_irq@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
Lloh47:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh49:
	ldr	w4, [x8]
	ldp	w5, w1, [x20]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_19
; %bb.17:
	mov	x23, x0
	str	x23, [sp]
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_11
LBB0_18:
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_19:
	mov	x0, x22
	bl	_input_register_device
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.20:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	b	LBB0_11
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No irq specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.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
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_LEFTMETA,4,2               ; @KEY_LEFTMETA
	.comm	_ICN8505_REG_CONFIGDATA,4,2     ; @ICN8505_REG_CONFIGDATA
l_.str.1:                               ; @.str.1
	.asciz	"Error reading resolution: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error touchscreen-size-x and/or -y missing\n"

	.comm	_ICN8505_MAX_TOUCHES,4,2        ; @ICN8505_MAX_TOUCHES
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ; @INPUT_MT_DROP_UNUSED
	.comm	_icn8505_irq,4,2                ; @icn8505_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"Error requesting irq: %d\n"

	.no_dead_strip	_icn8505_probe
.subsections_via_symbols
