	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synaptics_i2c_probe
_synaptics_i2c_probe:                   ## @synaptics_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_synaptics_i2c_touch_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_synaptics_i2c_reset_config
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, (%r14)
	jg	LBB0_5
## %bb.4:
	movq	_polling_req@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_synaptics_i2c_set_input_params
	movq	_polling_req@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_11
## %bb.8:
	movq	8(%r15), %rdi
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	movq	_synaptics_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	movl	$1, (%rbx)
	movq	8(%r15), %rdi
	movq	_INTERRUPT_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_synaptics_i2c_reg_set
LBB0_10:
	cmpl	$0, (%rbx)
	je	LBB0_12
LBB0_11:
	movq	8(%r15), %rdi
	movq	_scan_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_12:
	movl	(%r15), %edi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	%eax, %ebx
	addq	$4, %r14
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%r15), %edi
	callq	_input_free_device
	jmp	LBB0_14
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_polling_req,4,2                ## @polling_req
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requesting IRQ: %d\n"

	.comm	_synaptics_i2c_irq,4,2          ## @synaptics_i2c_irq
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"IRQ request failed: %d, falling back to polling\n"

	.comm	_INTERRUPT_EN_REG,4,2           ## @INTERRUPT_EN_REG
L_.str.2:                               ## @.str.2
	.asciz	"Using polling at rate: %d times/sec\n"

	.comm	_scan_rate,4,2                  ## @scan_rate
L_.str.3:                               ## @.str.3
	.asciz	"Input device register failed: %d\n"

	.no_dead_strip	_synaptics_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synaptics_i2c_probe
_synaptics_i2c_probe:                   ; @synaptics_i2c_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
	bl	_synaptics_i2c_touch_create
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_synaptics_i2c_reset_config
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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_5:
	ldr	w8, [x20]
Lloh3:
	adrp	x21, _polling_req@GOTPAGE
Lloh4:
	ldr	x21, [x21, _polling_req@GOTPAGEOFF]
	cmp	w8, #0
	b.gt	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
	bl	_input_allocate_device
	str	w0, [x19]
	cbz	w0, LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_synaptics_i2c_set_input_params
	ldr	w8, [x21]
	cbnz	w8, LBB0_12
; %bb.9:
	ldr	x0, [x19, #8]
	ldr	w2, [x0, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
Lloh7:
	adrp	x8, _synaptics_i2c_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _synaptics_i2c_irq@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_11
; %bb.10:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	mov	w8, #1
	str	w8, [x21]
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x8, _INTERRUPT_EN_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTERRUPT_EN_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_synaptics_i2c_reg_set
LBB0_11:
	ldr	w8, [x21]
	cbz	w8, LBB0_13
LBB0_12:
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x8, _scan_rate@GOTPAGE
Lloh22:
	ldr	x8, [x8, _scan_rate@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_13:
	ldr	w0, [x19]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.14:
	add	x0, x20, #4
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	ldr	w0, [x19]
	bl	_input_free_device
	b	LBB0_2
LBB0_15:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_polling_req,4,2                ; @polling_req
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requesting IRQ: %d\n"

	.comm	_synaptics_i2c_irq,4,2          ; @synaptics_i2c_irq
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"IRQ request failed: %d, falling back to polling\n"

	.comm	_INTERRUPT_EN_REG,4,2           ; @INTERRUPT_EN_REG
l_.str.2:                               ; @.str.2
	.asciz	"Using polling at rate: %d times/sec\n"

	.comm	_scan_rate,4,2                  ; @scan_rate
l_.str.3:                               ; @.str.3
	.asciz	"Input device register failed: %d\n"

	.no_dead_strip	_synaptics_i2c_probe
.subsections_via_symbols
