	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm97xx_ts_input_open
_wm97xx_ts_input_open:                  ## @wm97xx_ts_input_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	56(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*8(%rax)
LBB0_5:
	movq	56(%rbx), %rax
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rax)
	leaq	16(%rbx), %r14
	movq	_wm97xx_ts_reader@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, %rdi
	addq	$48, %rdi
	movq	_wm97xx_pen_irq_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$100, %eax
	jl	LBB0_7
## %bb.6:
	cltq
	imulq	$1374389535, %rax, %r15         ## imm = 0x51EB851F
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$37, %r15
	addl	%eax, %r15d
LBB0_7:
	movl	%r15d, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	$0, 40(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_wm97xx_init_pen_irq
	jmp	LBB0_10
LBB0_1:
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_9:
	movl	32(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_10:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	24(%rbx), %rdi
	movl	4(%rbx), %edx
	movq	%r14, %rsi
	callq	_queue_delayed_work
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kwm97xx"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create workqueue\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_wm97xx_ts_reader,4,2           ## @wm97xx_ts_reader
	.comm	_wm97xx_pen_irq_worker,4,2      ## @wm97xx_pen_irq_worker
	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"No IRQ specified\n"

	.no_dead_strip	_wm97xx_ts_input_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm97xx_ts_input_open
_wm97xx_ts_input_open:                  ; @wm97xx_ts_input_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_input_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_4:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	add	x20, x19, #16
Lloh2:
	adrp	x8, _wm97xx_ts_reader@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wm97xx_ts_reader@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #48
Lloh5:
	adrp	x8, _wm97xx_pen_irq_worker@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wm97xx_pen_irq_worker@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh8:
	adrp	x8, _HZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	cmp	w8, #99
	csinc	w8, w9, wzr, gt
	stp	w8, w8, [x19]
	str	xzr, [x19, #40]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_wm97xx_init_pen_irq
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
LBB0_6:
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #4]
	mov	x1, x20
	bl	_queue_delayed_work
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #32]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x19, #32]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kwm97xx"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create workqueue\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_wm97xx_ts_reader,4,2           ; @wm97xx_ts_reader
	.comm	_wm97xx_pen_irq_worker,4,2      ; @wm97xx_pen_irq_worker
	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"No IRQ specified\n"

	.no_dead_strip	_wm97xx_ts_input_open
.subsections_via_symbols
