	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_irq_init
_sun4i_irq_init:                        ## @sun4i_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_regmap_irq_get_virq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%ebx, (%r12)
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r12), %edi
	callq	_disable_irq
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %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	"failed to get virq for irq %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not request %s interrupt: %d\n"

	.no_dead_strip	_sun4i_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_irq_init
_sun4i_irq_init:                        ; @sun4i_irq_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_dev_get_drvdata
	mov	x27, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	bl	_iio_priv
	mov	x26, x0
	mov	x0, x20
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x21
	mov	x1, x19
	bl	_platform_get_irq_byname
	mov	x25, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w0, [x27]
	mov	x1, x25
	bl	_regmap_irq_get_virq
	mov	x25, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	str	w25, [x22]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	mov	w3, #0
	mov	x4, x23
	mov	x5, x26
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	bl	_disable_irq
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
	mov	w25, #0
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x25, x0
	str	x25, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x21
	mov	x2, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get virq for irq %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not request %s interrupt: %d\n"

	.no_dead_strip	_sun4i_irq_init
.subsections_via_symbols
