	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar1021_i2c_probe
_ar1021_i2c_probe:                      ## @ar1021_i2c_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, 8(%r14)
	movq	%rax, (%r14)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, 24(%rbx)
	movq	_ar1021_i2c_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ar1021_i2c_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INPUT_PROP_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR1021_MAX_X@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR1021_MAX_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movl	4(%r15), %esi
	movq	_ar1021_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str.2(%rip), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_7:
	movl	4(%r15), %edi
	callq	_disable_irq
	movq	(%r14), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_9:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_check_functionality error\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ar1021 I2C Touchscreen"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_ar1021_i2c_open,4,2            ## @ar1021_i2c_open
	.comm	_ar1021_i2c_close,4,2           ## @ar1021_i2c_close
	.comm	_INPUT_PROP_DIRECT,4,2          ## @INPUT_PROP_DIRECT
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_AR1021_MAX_X,4,2               ## @AR1021_MAX_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_AR1021_MAX_Y,4,2               ## @AR1021_MAX_Y
	.comm	_ar1021_i2c_irq,4,2             ## @ar1021_i2c_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"ar1021_i2c"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable IRQ, error: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to register input device, error: %d\n"

	.no_dead_strip	_ar1021_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar1021_i2c_probe
_ar1021_i2c_probe:                      ; @ar1021_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	stp	x0, x19, [x20]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
Lloh8:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x19, [x0, #24]
Lloh11:
	adrp	x8, _ar1021_i2c_open@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ar1021_i2c_open@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ar1021_i2c_close@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ar1021_i2c_close@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh17:
	adrp	x8, _INPUT_PROP_DIRECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INPUT_PROP_DIRECT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh20:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
Lloh26:
	adrp	x8, _ABS_X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _AR1021_MAX_X@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR1021_MAX_X@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh32:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _AR1021_MAX_Y@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AR1021_MAX_Y@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	w1, [x19, #4]
Lloh38:
	adrp	x8, _ar1021_i2c_irq@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ar1021_i2c_irq@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
Lloh44:
	adrp	x5, l_.str.2@PAGE
Lloh45:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh50:
	adrp	x1, l_.str@PAGE
Lloh51:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh52:
	adrp	x8, _ENXIO@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_disable_irq
	ldr	x0, [x20]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.10:
	str	x21, [sp]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh44, Lloh45
	.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 AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_check_functionality error\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ar1021 I2C Touchscreen"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_ar1021_i2c_open,4,2            ; @ar1021_i2c_open
	.comm	_ar1021_i2c_close,4,2           ; @ar1021_i2c_close
	.comm	_INPUT_PROP_DIRECT,4,2          ; @INPUT_PROP_DIRECT
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_AR1021_MAX_X,4,2               ; @AR1021_MAX_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_AR1021_MAX_Y,4,2               ; @AR1021_MAX_Y
	.comm	_ar1021_i2c_irq,4,2             ; @ar1021_i2c_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"ar1021_i2c"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable IRQ, error: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to register input device, error: %d\n"

	.no_dead_strip	_ar1021_i2c_probe
.subsections_via_symbols
