	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_irq_syscfg_enable
_st_irq_syscfg_enable:                  ## @st_irq_syscfg_enable
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_count_u32_elems
	movq	_ST_A9_IRQ_MAX_CHANS@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_count_u32_elems
	cmpl	(%r14), %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_of_property_read_u32_index
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_st_irq_xlate
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_of_property_read_u32_index
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_st_irq_xlate
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_8
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movl	-48(%rbp), %edi
	callq	_ST_A9_EXTIRQ_INV_SEL
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx), %eax
	movl	%eax, (%rcx)
	movl	4(%rcx), %esi
	movl	8(%rcx), %edi
	movq	_ST_A9_IRQ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %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	"st,irq-device"

	.comm	_ST_A9_IRQ_MAX_CHANS,4,2        ## @ST_A9_IRQ_MAX_CHANS
L_.str.1:                               ## @.str.1
	.asciz	"st,enable-irq-device must have 2 elems\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"st,fiq-device"

L_.str.3:                               ## @.str.3
	.asciz	"st,enable-fiq-device must have 2 elems\n"

L_.str.4:                               ## @.str.4
	.asciz	"st,invert-ext"

	.comm	_ST_A9_IRQ_MASK,4,2             ## @ST_A9_IRQ_MASK
	.no_dead_strip	_st_irq_syscfg_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_irq_syscfg_enable
_st_irq_syscfg_enable:                  ; @st_irq_syscfg_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	ldr	x20, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_property_count_u32_elems
Lloh2:
	adrp	x25, _ST_A9_IRQ_MAX_CHANS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ST_A9_IRQ_MAX_CHANS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.1:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_property_count_u32_elems
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.2:
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_of_property_read_u32_index
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x22
	mov	w3, #1
	bl	_st_irq_xlate
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	bl	_of_property_read_u32_index
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x22
	mov	w3, #0
	bl	_st_irq_xlate
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	w8, [x25]
	cmp	w22, w8
	b.lt	LBB0_4
LBB0_7:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	w0, [sp, #8]
	bl	_ST_A9_EXTIRQ_INV_SEL
	ldp	w8, w1, [x19]
	orr	w3, w8, w0
	str	w3, [x19]
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x8, _ST_A9_IRQ_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ST_A9_IRQ_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x21
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st,irq-device"

	.comm	_ST_A9_IRQ_MAX_CHANS,4,2        ; @ST_A9_IRQ_MAX_CHANS
l_.str.1:                               ; @.str.1
	.asciz	"st,enable-irq-device must have 2 elems\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"st,fiq-device"

l_.str.3:                               ; @.str.3
	.asciz	"st,enable-fiq-device must have 2 elems\n"

l_.str.4:                               ; @.str.4
	.asciz	"st,invert-ext"

	.comm	_ST_A9_IRQ_MASK,4,2             ; @ST_A9_IRQ_MASK
	.no_dead_strip	_st_irq_syscfg_enable
.subsections_via_symbols
