	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_irq_cfg_reg
_sunxi_irq_cfg_reg:                     ## @sunxi_irq_cfg_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movq	_IRQ_PER_BANK@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %esi
	movl	%edx, %eax
	movq	_IRQ_CFG_IRQ_PER_REG@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %ebx
	shll	$2, %ebx
	movq	_IRQ_CFG_REG@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	callq	_sunxi_irq_hw_bank_num
	movq	_IRQ_MEM_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	addl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_PER_BANK,4,2               ## @IRQ_PER_BANK
	.comm	_IRQ_CFG_IRQ_PER_REG,4,2        ## @IRQ_CFG_IRQ_PER_REG
	.comm	_IRQ_CFG_REG,4,2                ## @IRQ_CFG_REG
	.comm	_IRQ_MEM_SIZE,4,2               ## @IRQ_MEM_SIZE
	.no_dead_strip	_sunxi_irq_cfg_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_irq_cfg_reg
_sunxi_irq_cfg_reg:                     ; @sunxi_irq_cfg_reg
	.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
Lloh0:
	adrp	x8, _IRQ_PER_BANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	sdiv	w8, w1, w9
Lloh3:
	adrp	x10, _IRQ_CFG_IRQ_PER_REG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IRQ_CFG_IRQ_PER_REG@GOTPAGEOFF]
	msub	w9, w8, w9, w1
Lloh5:
	ldr	w10, [x10]
	sdiv	w19, w9, w10
Lloh6:
	adrp	x9, _IRQ_CFG_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQ_CFG_REG@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x9]
	mov	x1, x8
	bl	_sunxi_irq_hw_bank_num
Lloh9:
	adrp	x8, _IRQ_MEM_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_MEM_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w9, w20, w19, lsl #2
	madd	w0, w8, w0, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_PER_BANK,4,2               ; @IRQ_PER_BANK
	.comm	_IRQ_CFG_IRQ_PER_REG,4,2        ; @IRQ_CFG_IRQ_PER_REG
	.comm	_IRQ_CFG_REG,4,2                ; @IRQ_CFG_REG
	.comm	_IRQ_MEM_SIZE,4,2               ; @IRQ_MEM_SIZE
	.no_dead_strip	_sunxi_irq_cfg_reg
.subsections_via_symbols
