	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9052_irq_init                ## -- Begin function da9052_irq_init
	.p2align	4, 0x90
_da9052_irq_init:                       ## @da9052_irq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	movl	12(%rdi), %edi
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_da9052_regmap_irq_chip@GOTPCREL(%rip), %r8
	movl	$-1, %ecx
	movq	%rbx, %r9
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	callq	_enable_irq_wake
	movq	_DA9052_IRQ_ADC_EOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_da9052_auxadc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %r8
	callq	_da9052_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_regmap_del_irq_chip
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_da9052_regmap_irq_chip,4,2     ## @da9052_regmap_irq_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap_add_irq_chip failed: %d\n"

	.comm	_DA9052_IRQ_ADC_EOM,4,2         ## @DA9052_IRQ_ADC_EOM
L_.str.1:                               ## @.str.1
	.asciz	"adc-irq"

	.comm	_da9052_auxadc_irq,4,2          ## @da9052_auxadc_irq
L_.str.2:                               ## @.str.2
	.asciz	"DA9052_IRQ_ADC_EOM failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9052_irq_init                ; -- Begin function da9052_irq_init
	.p2align	2
_da9052_irq_init:                       ; @da9052_irq_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
	ldr	w1, [x19, #4]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x4, _da9052_regmap_irq_chip@GOTPAGE
Lloh7:
	ldr	x4, [x4, _da9052_regmap_irq_chip@GOTPAGEOFF]
	mov	w3, #-1
	mov	x5, x19
	bl	_regmap_add_irq_chip
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_enable_irq_wake
Lloh8:
	adrp	x8, _DA9052_IRQ_ADC_EOM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DA9052_IRQ_ADC_EOM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _da9052_auxadc_irq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _da9052_auxadc_irq@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x19
	bl	_da9052_request_irq
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	ldp	w1, w0, [x19]
	bl	_regmap_del_irq_chip
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_da9052_regmap_irq_chip,4,2     ; @da9052_regmap_irq_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap_add_irq_chip failed: %d\n"

	.comm	_DA9052_IRQ_ADC_EOM,4,2         ; @DA9052_IRQ_ADC_EOM
l_.str.1:                               ; @.str.1
	.asciz	"adc-irq"

	.comm	_da9052_auxadc_irq,4,2          ; @da9052_auxadc_irq
l_.str.2:                               ; @.str.2
	.asciz	"DA9052_IRQ_ADC_EOM failed: %d\n"

.subsections_via_symbols
