	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twl4030_init_irq               ## -- Begin function twl4030_init_irq
	.p2align	4, 0x90
_twl4030_init_irq:                      ## @twl4030_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	_TWL4030_PWR_NR_IRQS@GOTPCREL(%rip), %rax
	movq	_TWL4030_CORE_NR_IRQS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	movl	$-1, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_irq_alloc_descs
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_irq_domain_simple_ops@GOTPCREL(%rip), %r8
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_irq_domain_add_legacy
	movq	_TWL4030_CORE_NR_IRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_twl_irq_line@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_twl4030_init_sih_modules
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	addl	%ebx, %r12d
	movq	_twl4030_irq_base@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_dummy_irq_chip@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, _twl4030_init_irq.twl4030_irq_chip(%rip)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, _twl4030_init_irq.twl4030_irq_chip(%rip)
	movl	8(%rax), %eax
	movq	_twl4030_sih_irq_chip@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.5:
	movq	_handle_simple_irq@GOTPCREL(%rip), %r15
	leaq	_twl4030_init_irq.twl4030_irq_chip(%rip), %r13
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_irq_set_nested_thread
	movl	%ebx, %edi
	callq	_activate_irq
	incl	%ebx
	cmpl	%r12d, %ebx
	jl	LBB0_6
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_dev_info
	movq	_TWL4030_MODULE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_twl4030_sih_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_handle_twl4030_pih@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %r8
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.15:
	movl	%r15d, %edi
	callq	_enable_irq_wake
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_irq_set_nested_thread
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_irq_set_chip_and_handler
	incl	%r14d
	cmpl	%r12d, %r14d
	jl	LBB0_12
LBB0_13:
	movl	%r13d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_twl4030_init_irq.twl4030_irq_chip,16,3 ## @twl4030_init_irq.twl4030_irq_chip
	.comm	_TWL4030_PWR_NR_IRQS,4,2        ## @TWL4030_PWR_NR_IRQS
	.comm	_TWL4030_CORE_NR_IRQS,4,2       ## @TWL4030_CORE_NR_IRQS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to allocate IRQ descs\n"

	.comm	_irq_domain_simple_ops,4,2      ## @irq_domain_simple_ops
	.comm	_twl_irq_line,4,2               ## @twl_irq_line
	.comm	_twl4030_irq_base,4,2           ## @twl4030_irq_base
	.comm	_dummy_irq_chip,16,3            ## @dummy_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"twl4030"

	.comm	_twl4030_sih_irq_chip,4,2       ## @twl4030_sih_irq_chip
	.comm	_handle_simple_irq,8,3          ## @handle_simple_irq
L_.str.2:                               ## @.str.2
	.asciz	"%s (irq %d) chaining IRQs %d..%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"PIH"

	.comm	_TWL4030_MODULE_INT,4,2         ## @TWL4030_MODULE_INT
L_.str.4:                               ## @.str.4
	.asciz	"sih_setup PWR INT --> %d\n"

	.comm	_handle_twl4030_pih,4,2         ## @handle_twl4030_pih
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.5:                               ## @.str.5
	.asciz	"TWL4030-PIH"

L_.str.6:                               ## @.str.6
	.asciz	"could not claim irq%d: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twl4030_init_irq               ; -- Begin function twl4030_init_irq
	.p2align	2
_twl4030_init_irq:                      ; @twl4030_init_irq
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TWL4030_PWR_NR_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_PWR_NR_IRQS@GOTPAGEOFF]
	ldr	x22, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _TWL4030_CORE_NR_IRQS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TWL4030_CORE_NR_IRQS@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w23, w9, w8
	mov	w0, #-1
	mov	w1, #0
	mov	x2, x23
	mov	w3, #0
	bl	_irq_alloc_descs
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh5:
	adrp	x4, _irq_domain_simple_ops@GOTPAGE
Lloh6:
	ldr	x4, [x4, _irq_domain_simple_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	mov	w3, #0
	mov	x5, #0
	bl	_irq_domain_add_legacy
	ldr	w25, [x24]
Lloh7:
	adrp	x8, _twl_irq_line@GOTPAGE
Lloh8:
	ldr	x8, [x8, _twl_irq_line@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_twl4030_init_sih_modules
	tbnz	w0, #31, LBB0_9
; %bb.2:
	add	w22, w25, w19
Lloh10:
	adrp	x8, _twl4030_irq_base@GOTPAGE
Lloh11:
	ldr	x8, [x8, _twl4030_irq_base@GOTPAGEOFF]
Lloh12:
	str	w19, [x8]
Lloh13:
	adrp	x8, _dummy_irq_chip@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dummy_irq_chip@GOTPAGEOFF]
	ldr	q0, [x8]
Lloh15:
	adrp	x9, _twl4030_init_irq.twl4030_irq_chip@PAGE
Lloh16:
	add	x9, x9, _twl4030_init_irq.twl4030_irq_chip@PAGEOFF
Lloh17:
	str	q0, [x9]
Lloh18:
	adrp	x9, l_.str.1@PAGE
Lloh19:
	add	x9, x9, l_.str.1@PAGEOFF
	adrp	x10, _twl4030_init_irq.twl4030_irq_chip@PAGE
	str	x9, [x10, _twl4030_init_irq.twl4030_irq_chip@PAGEOFF]
	ldr	w8, [x8, #8]
Lloh20:
	adrp	x9, _twl4030_sih_irq_chip@GOTPAGE
Lloh21:
	ldr	x9, [x9, _twl4030_sih_irq_chip@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.3:
Lloh23:
	adrp	x26, _handle_simple_irq@GOTPAGE
Lloh24:
	ldr	x26, [x26, _handle_simple_irq@GOTPAGEOFF]
Lloh25:
	adrp	x23, _twl4030_init_irq.twl4030_irq_chip@PAGE
Lloh26:
	add	x23, x23, _twl4030_init_irq.twl4030_irq_chip@PAGEOFF
	mov	x24, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x26]
	mov	x0, x24
	mov	x1, x23
	bl	_irq_set_chip_and_handler
	mov	x0, x24
	mov	w1, #1
	bl	_irq_set_nested_thread
	mov	x0, x24
	bl	_activate_irq
	add	w24, w24, #1
	cmp	w24, w22
	b.lt	LBB0_4
LBB0_5:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	mov	x4, x19
	mov	x5, x22
	bl	_dev_info
Lloh31:
	adrp	x8, _TWL4030_MODULE_INT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TWL4030_MODULE_INT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_twl4030_sih_setup
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh34:
	adrp	x8, _handle_twl4030_pih@GOTPAGE
Lloh35:
	ldr	x8, [x8, _handle_twl4030_pih@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x4, l_.str.5@PAGE
Lloh41:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x5, #0
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	x0, x21
	bl	_enable_irq_wake
	b	LBB0_13
LBB0_8:
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_13
LBB0_9:
	mov	x19, x0
	b	LBB0_13
LBB0_10:
	mov	x23, x0
	str	x23, [sp]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	cmp	w25, #1
	b.lt	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_irq_set_nested_thread
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_irq_set_chip_and_handler
	add	w19, w19, #1
	cmp	w19, w22
	b.lt	LBB0_11
LBB0_12:
	mov	x19, x23
LBB0_13:
	mov	x0, x19
	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
LBB0_14:
	mov	x23, x0
	stp	x21, x23, [sp]
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	cmp	w25, #1
	b.ge	LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAddStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_twl4030_init_irq.twl4030_irq_chip,16,3 ; @twl4030_init_irq.twl4030_irq_chip
	.comm	_TWL4030_PWR_NR_IRQS,4,2        ; @TWL4030_PWR_NR_IRQS
	.comm	_TWL4030_CORE_NR_IRQS,4,2       ; @TWL4030_CORE_NR_IRQS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to allocate IRQ descs\n"

	.comm	_irq_domain_simple_ops,4,2      ; @irq_domain_simple_ops
	.comm	_twl_irq_line,4,2               ; @twl_irq_line
	.comm	_twl4030_irq_base,4,2           ; @twl4030_irq_base
	.comm	_dummy_irq_chip,16,3            ; @dummy_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"twl4030"

	.comm	_twl4030_sih_irq_chip,4,2       ; @twl4030_sih_irq_chip
	.comm	_handle_simple_irq,8,3          ; @handle_simple_irq
l_.str.2:                               ; @.str.2
	.asciz	"%s (irq %d) chaining IRQs %d..%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"PIH"

	.comm	_TWL4030_MODULE_INT,4,2         ; @TWL4030_MODULE_INT
l_.str.4:                               ; @.str.4
	.asciz	"sih_setup PWR INT --> %d\n"

	.comm	_handle_twl4030_pih,4,2         ; @handle_twl4030_pih
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.5:                               ; @.str.5
	.asciz	"TWL4030-PIH"

l_.str.6:                               ; @.str.6
	.asciz	"could not claim irq%d: %d\n"

.subsections_via_symbols
