	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_interrupt_init
_ca8210_interrupt_init:                 ## @ca8210_interrupt_init
	.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, %r12
	movq	8(%rdi), %r15
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_of_get_named_gpio
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_gpio_to_irq
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ca8210_interrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_spi_get_drvdata
	leaq	L_.str.2(%rip), %rcx
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%eax, %r8d
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	8(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_crit
	movl	(%r15), %edi
	callq	_gpio_unexport
	movl	(%r15), %edi
	callq	_gpio_free
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_1:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_crit
	movl	(%r15), %edi
	callq	_gpio_free
	movl	8(%r15), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq-gpio"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get irq for gpio pin %d\n"

	.comm	_ca8210_interrupt_handler,4,2   ## @ca8210_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.2:                               ## @.str.2
	.asciz	"ca8210-irq"

L_.str.3:                               ## @.str.3
	.asciz	"request_irq %d failed\n"

	.no_dead_strip	_ca8210_interrupt_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_interrupt_init
_ca8210_interrupt_init:                 ; @ca8210_interrupt_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_get_named_gpio
	str	w0, [x23]
	bl	_gpio_to_irq
	str	x0, [x23, #8]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _ca8210_interrupt_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ca8210_interrupt_handler@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_spi_get_drvdata
	mov	x4, x0
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w2, [x23, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_crit
	ldr	w0, [x23]
	bl	_gpio_unexport
	ldr	w0, [x23]
	bl	_gpio_free
	b	LBB0_4
LBB0_3:
	ldr	w2, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_crit
	ldr	w0, [x23]
	bl	_gpio_free
	ldr	w20, [x23, #8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq-gpio"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get irq for gpio pin %d\n"

	.comm	_ca8210_interrupt_handler,4,2   ; @ca8210_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.2:                               ; @.str.2
	.asciz	"ca8210-irq"

l_.str.3:                               ; @.str.3
	.asciz	"request_irq %d failed\n"

	.no_dead_strip	_ca8210_interrupt_init
.subsections_via_symbols
