	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_icu_write_msg
_mvebu_icu_write_msg:                   ## @mvebu_icu_write_msg
	.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, %r12
	movl	(%rdi), %edi
	callq	_irq_get_irq_data
	movq	%rax, %r15
	movl	16(%rax), %edi
	callq	_platform_msi_get_host_data
	movq	8(%r15), %rbx
	movq	8(%rbx), %r14
	cmpq	$0, 16(%r12)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_mvebu_icu_init
	movq	_ICU_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	orl	(%r12), %r13d
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_5
## %bb.4:
	movq	_ICU_IS_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movl	4(%rbx), %edx
	movq	_ICU_GROUP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edx, %r13d
	orl	%eax, %r13d
LBB0_6:
	movq	(%r14), %rbx
	movq	(%r15), %rdi
	callq	_ICU_INT_CFG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	(%r15), %rax
	movq	_ICU_SATA0_ICU_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_ICU_SATA1_ICU_ID@GOTPCREL(%rip), %r15
	cmpq	%rdi, %rax
	je	LBB0_9
## %bb.7:
	cmpq	(%r15), %rax
	je	LBB0_9
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r14), %rbx
	callq	_ICU_INT_CFG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	(%r14), %rbx
	movq	(%r15), %rdi
	callq	_ICU_INT_CFG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ICU_INT_ENABLE,4,2             ## @ICU_INT_ENABLE
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_ICU_IS_EDGE,4,2                ## @ICU_IS_EDGE
	.comm	_ICU_GROUP_SHIFT,4,2            ## @ICU_GROUP_SHIFT
	.comm	_ICU_SATA0_ICU_ID,8,3           ## @ICU_SATA0_ICU_ID
	.comm	_ICU_SATA1_ICU_ID,8,3           ## @ICU_SATA1_ICU_ID
	.no_dead_strip	_mvebu_icu_write_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_icu_write_msg
_mvebu_icu_write_msg:                   ; @mvebu_icu_write_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	w0, [x0]
	bl	_irq_get_irq_data
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_platform_msi_get_host_data
	mov	x1, x0
	ldr	x22, [x20, #8]
	ldr	x19, [x22, #8]
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
LBB0_2:
	mov	x0, x19
	mov	x2, x21
	bl	_mvebu_icu_init
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _ICU_INT_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICU_INT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh3:
	adrp	x9, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ICU_IS_EDGE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ICU_IS_EDGE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	ldp	w11, w12, [x22]
	tst	w9, w11
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ICU_GROUP_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICU_GROUP_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w12, w9
	orr	w21, w8, w9
LBB0_3:
	ldr	x22, [x19]
	ldr	x0, [x20]
	bl	_ICU_INT_CFG
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel_relaxed
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _ICU_SATA0_ICU_ID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICU_SATA0_ICU_ID@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x9]
Lloh15:
	adrp	x20, _ICU_SATA1_ICU_ID@GOTPAGE
Lloh16:
	ldr	x20, [x20, _ICU_SATA1_ICU_ID@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	x22, [x19]
	bl	_ICU_INT_CFG
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel_relaxed
	ldr	x19, [x19]
	ldr	x0, [x20]
	bl	_ICU_INT_CFG
	add	x1, x0, x19
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel_relaxed
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w21, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ICU_INT_ENABLE,4,2             ; @ICU_INT_ENABLE
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_ICU_IS_EDGE,4,2                ; @ICU_IS_EDGE
	.comm	_ICU_GROUP_SHIFT,4,2            ; @ICU_GROUP_SHIFT
	.comm	_ICU_SATA0_ICU_ID,8,3           ; @ICU_SATA0_ICU_ID
	.comm	_ICU_SATA1_ICU_ID,8,3           ; @ICU_SATA1_ICU_ID
	.no_dead_strip	_mvebu_icu_write_msg
.subsections_via_symbols
