	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_hha_pmu_init_irq
_hisi_hha_pmu_init_irq:                 ## @hisi_hha_pmu_init_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, %r15
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_hisi_hha_pmu_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_NOBALANCING@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%ebx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movl	%r12d, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hisi_hha_pmu_isr,4,2           ## @hisi_hha_pmu_isr
	.comm	_IRQF_NOBALANCING,4,2           ## @IRQF_NOBALANCING
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to request IRQ:%d ret:%d\n"

	.no_dead_strip	_hisi_hha_pmu_init_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_hha_pmu_init_irq
_hisi_hha_pmu_init_irq:                 ; @hisi_hha_pmu_init_irq
	.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	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	bl	_platform_get_irq
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _hisi_hha_pmu_isr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hisi_hha_pmu_isr@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQF_NOBALANCING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQF_NOBALANCING@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IRQF_NO_THREAD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	mov	x5, x21
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_3
; %bb.2:
	str	w19, [x21]
	mov	w19, #0
	b	LBB0_4
LBB0_3:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	bl	_dev_err
	mov	x19, x22
LBB0_4:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hisi_hha_pmu_isr,4,2           ; @hisi_hha_pmu_isr
	.comm	_IRQF_NOBALANCING,4,2           ; @IRQF_NOBALANCING
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to request IRQ:%d ret:%d\n"

	.no_dead_strip	_hisi_hha_pmu_init_irq
.subsections_via_symbols
