	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts5500_dio_probe
_ts5500_dio_probe:                      ## @ts5500_dio_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_platform_get_device_id
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	leaq	72(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 8(%r13)
	movq	%r15, 56(%r13)
	movq	_ts5500_gpio_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_ts5500_gpio_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	_ts5500_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	_ts5500_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	_ts5500_gpio_to_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movl	$-1, 16(%r13)
	leal	-128(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_16
## %bb.5:
	cmpl	$130, %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$131, %r14d
	jne	LBB0_21
## %bb.7:
	movq	_ts5500_dio1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 80(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r13)
	movq	%r15, %rdi
	movl	$122, %esi
	movl	$3, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_devm_request_region
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_26
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_26
LBB0_16:
	movq	_ts5500_lcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 80(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r13)
	movq	%r15, %rdi
	movl	$114, %esi
	movl	$2, %edx
	movq	%rbx, %rcx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_10
## %bb.17:
	movq	_hex7d_reserved@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_20
## %bb.18:
	movq	%r15, %rdi
	movl	$125, %esi
	movl	$1, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_14
## %bb.19:
	movl	$1, (%rbx)
LBB0_20:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	$4, %edi
	callq	_BIT
	movl	%eax, %edi
	movl	$125, %esi
	callq	_ts5500_clear_mask
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_21
LBB0_9:
	movq	_ts5500_dio2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 80(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r13)
	movq	%r15, %rdi
	movl	$126, %esi
	movl	$2, %edx
	movq	%rbx, %rcx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	_hex7d_reserved@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_21
## %bb.13:
	movq	%r15, %rdi
	movl	$125, %esi
	movl	$1, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	$1, (%rbx)
LBB0_21:
	movq	%r13, %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_23:
	movq	%r13, %rdi
	callq	_ts5500_enable_irq
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	movl	%eax, %r12d
	movq	(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rdx
LBB0_11:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_26
LBB0_24:
	xorl	%r12d, %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing IRQ resource\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ts5500_gpio_input,4,2          ## @ts5500_gpio_input
	.comm	_ts5500_gpio_output,4,2         ## @ts5500_gpio_output
	.comm	_ts5500_gpio_get,4,2            ## @ts5500_gpio_get
	.comm	_ts5500_gpio_set,4,2            ## @ts5500_gpio_set
	.comm	_ts5500_gpio_to_irq,4,2         ## @ts5500_gpio_to_irq
	.comm	_ts5500_dio1,8,3                ## @ts5500_dio1
L_.str.1:                               ## @.str.1
	.asciz	"failed to request %s ports\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ts5500_dio2,8,3                ## @ts5500_dio2
	.comm	_hex7d_reserved,4,2             ## @hex7d_reserved
L_.str.2:                               ## @.str.2
	.asciz	"failed to request %s 7D\n"

	.comm	_ts5500_lcd,8,3                 ## @ts5500_lcd
L_.str.3:                               ## @.str.3
	.asciz	"failed to register the gpio chip\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid interrupt %d\n"

	.no_dead_strip	_ts5500_dio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts5500_dio_probe
_ts5500_dio_probe:                      ; @ts5500_dio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_platform_get_device_id
	ldr	w24, [x0]
	mov	x0, x19
	bl	_dev_name
	mov	x21, x0
Lloh0:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x8, [x22]
	mov	x23, x20
	str	x8, [x23], #72
	mov	x0, x23
	bl	_spin_lock_init
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x22, x20
	str	x21, [x22, #8]!
Lloh9:
	adrp	x9, _ts5500_gpio_input@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ts5500_gpio_input@GOTPAGEOFF]
	str	w8, [x22, #56]
Lloh11:
	ldr	w8, [x9]
	str	w8, [x22, #40]
Lloh12:
	adrp	x8, _ts5500_gpio_output@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ts5500_gpio_output@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ts5500_gpio_get@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ts5500_gpio_get@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _ts5500_gpio_set@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ts5500_gpio_set@GOTPAGEOFF]
	stp	w9, w8, [x22, #32]
Lloh20:
	ldr	w8, [x10]
Lloh21:
	adrp	x9, _ts5500_gpio_to_irq@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ts5500_gpio_to_irq@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	mov	w8, #-1
	str	w8, [x22, #8]
	sub	w8, w24, #128
	str	x19, [x22, #48]
	cmp	w8, #2
	b.lo	LBB0_8
; %bb.3:
	cmp	w24, #130
	b.eq	LBB0_13
; %bb.4:
	cmp	w24, #131
	b.ne	LBB0_17
; %bb.5:
Lloh24:
	adrp	x8, _ts5500_dio1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ts5500_dio1@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	str	x0, [x20, #80]
	bl	_ARRAY_SIZE
	str	x0, [x20, #24]
	mov	x0, x19
	mov	w1, #122
	mov	w2, #3
	mov	x3, x21
	bl	_devm_request_region
	cbnz	w0, LBB0_17
	b	LBB0_19
LBB0_6:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_7:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_8:
Lloh33:
	adrp	x8, _ts5500_lcd@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ts5500_lcd@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
	str	x0, [x20, #80]
	bl	_ARRAY_SIZE
	str	x0, [x20, #24]
	mov	x0, x19
	mov	w1, #114
	mov	w2, #2
	mov	x3, x21
	bl	_devm_request_region
	cbz	w0, LBB0_19
; %bb.9:
Lloh36:
	adrp	x24, _hex7d_reserved@GOTPAGE
Lloh37:
	ldr	x24, [x24, _hex7d_reserved@GOTPAGEOFF]
	ldr	w8, [x24]
	cbnz	w8, LBB0_12
; %bb.10:
	mov	w25, #1
	mov	x0, x19
	mov	w1, #125
	mov	w2, #1
	mov	x3, x21
	bl	_devm_request_region
	cbz	w0, LBB0_26
; %bb.11:
	str	w25, [x24]
LBB0_12:
	mov	x0, x23
	bl	_spin_lock_irqsave
	mov	w0, #4
	bl	_BIT
	mov	w1, #125
	bl	_ts5500_clear_mask
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_17
LBB0_13:
Lloh38:
	adrp	x8, _ts5500_dio2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ts5500_dio2@GOTPAGEOFF]
Lloh40:
	ldr	x0, [x8]
	str	x0, [x20, #80]
	bl	_ARRAY_SIZE
	str	x0, [x20, #24]
	mov	x0, x19
	mov	w1, #126
	mov	w2, #2
	mov	x3, x21
	bl	_devm_request_region
	cbz	w0, LBB0_19
; %bb.14:
Lloh41:
	adrp	x23, _hex7d_reserved@GOTPAGE
Lloh42:
	ldr	x23, [x23, _hex7d_reserved@GOTPAGEOFF]
	ldr	w8, [x23]
	cbnz	w8, LBB0_17
; %bb.15:
	mov	w24, #1
	mov	x0, x19
	mov	w1, #125
	mov	w2, #1
	mov	x3, x21
	bl	_devm_request_region
	cbz	w0, LBB0_26
; %bb.16:
	str	w24, [x23]
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_22
; %bb.18:
	mov	x21, x0
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_19:
	str	x21, [sp]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
Lloh47:
	adrp	x8, _EBUSY@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_25
LBB0_22:
	mov	x0, x20
	bl	_ts5500_enable_irq
	mov	x21, x0
	cbz	w0, LBB0_25
; %bb.23:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_dev_err
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_26:
	str	x21, [sp]
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing IRQ resource\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ts5500_gpio_input,4,2          ; @ts5500_gpio_input
	.comm	_ts5500_gpio_output,4,2         ; @ts5500_gpio_output
	.comm	_ts5500_gpio_get,4,2            ; @ts5500_gpio_get
	.comm	_ts5500_gpio_set,4,2            ; @ts5500_gpio_set
	.comm	_ts5500_gpio_to_irq,4,2         ; @ts5500_gpio_to_irq
	.comm	_ts5500_dio1,8,3                ; @ts5500_dio1
l_.str.1:                               ; @.str.1
	.asciz	"failed to request %s ports\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ts5500_dio2,8,3                ; @ts5500_dio2
	.comm	_hex7d_reserved,4,2             ; @hex7d_reserved
l_.str.2:                               ; @.str.2
	.asciz	"failed to request %s 7D\n"

	.comm	_ts5500_lcd,8,3                 ; @ts5500_lcd
l_.str.3:                               ; @.str.3
	.asciz	"failed to register the gpio chip\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid interrupt %d\n"

	.no_dead_strip	_ts5500_dio_probe
.subsections_via_symbols
