	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1x00_ts_add
_ucb1x00_ts_add:                        ## @ucb1x00_ts_add
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	movq	8(%r14), %rax
	movq	%rax, (%r15)
	movq	%rbx, 16(%r15)
	movq	_adcsync@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.6:
	movq	_UCB_NOSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_3
LBB0_5:
	movq	_UCB_SYNC@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rbx)
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ucb1x00_ts_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ucb1x00_ts_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	%rbx, %rdi
	callq	_input_register_device
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_adcsync,8,3                    ## @adcsync
	.comm	_UCB_SYNC,4,2                   ## @UCB_SYNC
	.comm	_UCB_NOSYNC,4,2                 ## @UCB_NOSYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Touchscreen panel"

	.comm	_ucb1x00_ts_open,4,2            ## @ucb1x00_ts_open
	.comm	_ucb1x00_ts_close,4,2           ## @ucb1x00_ts_close
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.no_dead_strip	_ucb1x00_ts_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1x00_ts_add
_ucb1x00_ts_add:                        ; @ucb1x00_ts_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	str	x8, [x19]
	str	x21, [x19, #16]
Lloh6:
	adrp	x9, _adcsync@GOTPAGE
Lloh7:
	ldr	x9, [x9, _adcsync@GOTPAGEOFF]
Lloh8:
	adrp	x10, _UCB_SYNC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _UCB_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x11, _UCB_NOSYNC@GOTPAGE
Lloh12:
	ldr	x11, [x11, _UCB_NOSYNC@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	str	w9, [x19, #8]
Lloh13:
	adrp	x9, l_.str@PAGE
Lloh14:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [x21]
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh15:
	adrp	x8, _ucb1x00_ts_open@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ucb1x00_ts_open@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ucb1x00_ts_close@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ucb1x00_ts_close@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh21:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x21, #12]
	bl	___set_bit
Lloh24:
	adrp	x8, _ABS_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh27:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh30:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
	mov	x0, x21
	mov	x1, x19
	bl	_input_set_drvdata
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
LBB0_4:
	str	x19, [x20]
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_adcsync,8,3                    ; @adcsync
	.comm	_UCB_SYNC,4,2                   ; @UCB_SYNC
	.comm	_UCB_NOSYNC,4,2                 ; @UCB_NOSYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Touchscreen panel"

	.comm	_ucb1x00_ts_open,4,2            ; @ucb1x00_ts_open
	.comm	_ucb1x00_ts_close,4,2           ; @ucb1x00_ts_close
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.no_dead_strip	_ucb1x00_ts_add
.subsections_via_symbols
