	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt87xx_ts_probe
_wdt87xx_ts_probe:                      ## @wdt87xx_ts_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, %rbx
	leaq	4(%rdi), %r14
	movq	16(%rdi), %rax
	movl	(%rax), %edx
	movl	12(%rdi), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	16(%rbx), %rdi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movl	4(%r15), %edi
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wdt87xx_get_sysparam
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	%r15, %rdi
	callq	_wdt87xx_ts_create_input_device
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	8(%rbx), %r9d
	movl	12(%rbx), %esi
	movq	_wdt87xx_ts_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, (%rsp)
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_wdt87xx_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_device_add_group
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adapter=%d, client irq: %d\n"

	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"i2c-%u-%04x/input0"

	.comm	_wdt87xx_ts_interrupt,4,2       ## @wdt87xx_ts_interrupt
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"request irq failed: %d\n"

	.comm	_wdt87xx_attr_group,4,2         ## @wdt87xx_attr_group
L_.str.3:                               ## @.str.3
	.asciz	"create sysfs failed: %d\n"

	.no_dead_strip	_wdt87xx_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdt87xx_ts_probe
_wdt87xx_ts_probe:                      ; @wdt87xx_ts_probe
	.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
	add	x19, x0, #4
	ldr	x8, [x0, #16]
	ldr	w2, [x8]
	ldr	w3, [x0, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x0, [x20, #16]
Lloh2:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	str	x20, [x0, #16]
	add	x0, x0, #8
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	ldr	w0, [x21, #4]
	ldr	x8, [x20, #16]
	ldr	w3, [x8]
	ldr	w4, [x20]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x20
	mov	x1, x21
	bl	_wdt87xx_get_sysparam
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x21
	bl	_wdt87xx_ts_create_input_device
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
Lloh10:
	adrp	x8, _wdt87xx_ts_interrupt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _wdt87xx_ts_interrupt@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	ldp	w5, w1, [x20, #8]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_10
; %bb.5:
	mov	x22, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	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
LBB0_10:
Lloh22:
	adrp	x1, _wdt87xx_attr_group@GOTPAGE
Lloh23:
	ldr	x1, [x1, _wdt87xx_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_device_add_group
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.11:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adapter=%d, client irq: %d\n"

	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"i2c-%u-%04x/input0"

	.comm	_wdt87xx_ts_interrupt,4,2       ; @wdt87xx_ts_interrupt
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"request irq failed: %d\n"

	.comm	_wdt87xx_attr_group,4,2         ; @wdt87xx_attr_group
l_.str.3:                               ; @.str.3
	.asciz	"create sysfs failed: %d\n"

	.no_dead_strip	_wdt87xx_ts_probe
.subsections_via_symbols
