	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx25_tsadc_setup_irq
_mx25_tsadc_setup_irq:                  ## @mx25_tsadc_setup_irq
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_mx25_tsadc_domain_ops@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_irq_domain_add_simple
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_mx25_tsadc_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r14, %rdx
	callq	_irq_set_chained_handler_and_data
	jmp	LBB0_5
LBB0_1:
	movl	%r12d, %r15d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mx25_tsadc_domain_ops,4,2      ## @mx25_tsadc_domain_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add irq domain\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mx25_tsadc_irq_handler,4,2     ## @mx25_tsadc_irq_handler
	.no_dead_strip	_mx25_tsadc_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx25_tsadc_setup_irq
_mx25_tsadc_setup_irq:                  ; @mx25_tsadc_setup_irq
	.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, x1
	mov	x21, x0
	ldr	x22, [x0]
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x3, _mx25_tsadc_domain_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _mx25_tsadc_domain_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w1, #2
	mov	w2, #0
	mov	x4, x19
	bl	_irq_domain_add_simple
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _mx25_tsadc_irq_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mx25_tsadc_irq_handler@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_irq_set_chained_handler_and_data
	mov	w20, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_mx25_tsadc_domain_ops,4,2      ; @mx25_tsadc_domain_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add irq domain\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mx25_tsadc_irq_handler,4,2     ; @mx25_tsadc_irq_handler
	.no_dead_strip	_mx25_tsadc_setup_irq
.subsections_via_symbols
