	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts4800_ic_probe
_ts4800_ic_probe:                       ## @ts4800_ic_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, %r14
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r13), %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rsi, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_IRQ_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writew
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 12(%r13)
	movq	_ts4800_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_ts4800_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_ts4800_ic_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movl	$8, %esi
	movq	%r13, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_ts4800_ic_chained_handle_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r13, %rdx
	callq	_irq_set_chained_handler_and_data
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IRQ_MASK,8,3                   ## @IRQ_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get parent IRQ\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ts4800_irq_mask,4,2            ## @ts4800_irq_mask
	.comm	_ts4800_irq_unmask,4,2          ## @ts4800_irq_unmask
	.comm	_ts4800_ic_ops,4,2              ## @ts4800_ic_ops
L_.str.1:                               ## @.str.1
	.asciz	"cannot add IRQ domain\n"

	.comm	_ts4800_ic_chained_handle_irq,4,2 ## @ts4800_ic_chained_handle_irq
	.no_dead_strip	_ts4800_ic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts4800_ic_probe
_ts4800_ic_probe:                       ; @ts4800_ic_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	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	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
	b	_PTR_ERR
LBB0_3:
Lloh6:
	adrp	x8, _IRQ_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	w0, #65535
	bl	_writew
	mov	x0, x21
	mov	w1, #0
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #12]
Lloh9:
	adrp	x8, _ts4800_irq_mask@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ts4800_irq_mask@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ts4800_irq_unmask@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ts4800_irq_unmask@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
Lloh15:
	adrp	x2, _ts4800_ic_ops@GOTPAGE
Lloh16:
	ldr	x2, [x2, _ts4800_ic_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w1, #8
	mov	x3, x20
	bl	_irq_domain_add_linear
	str	w0, [x20]
	cbz	w0, LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _ts4800_ic_chained_handle_irq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ts4800_ic_chained_handle_irq@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_irq_set_chained_handler_and_data
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IRQ_MASK,8,3                   ; @IRQ_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get parent IRQ\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ts4800_irq_mask,4,2            ; @ts4800_irq_mask
	.comm	_ts4800_irq_unmask,4,2          ; @ts4800_irq_unmask
	.comm	_ts4800_ic_ops,4,2              ; @ts4800_ic_ops
l_.str.1:                               ; @.str.1
	.asciz	"cannot add IRQ domain\n"

	.comm	_ts4800_ic_chained_handle_irq,4,2 ; @ts4800_ic_chained_handle_irq
	.no_dead_strip	_ts4800_ic_probe
.subsections_via_symbols
