	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twl4030_sih_setup              ## -- Begin function twl4030_sih_setup
	.p2align	4, 0x90
_twl4030_sih_setup:                     ## @twl4030_sih_setup
	.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	%edi, %r13d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	negl	%r12d
	movq	_twl4030_irq_next@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_sih_modules@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jg	LBB0_1
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	addq	$24, %rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, (%rbx)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edx
	addl	-56(%rbp), %edx                 ## 4-byte Folded Reload
	movq	_NR_IRQS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %edx
	seta	%dil
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_13
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	%rbx, 16(%rax)
	movl	$-1, 12(%rax)
	leaq	8(%rax), %rdi
	movq	_twl4030_sih_do_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_twl4030_sih_do_edge@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	cmpl	$0, 4(%rbx)
	je	LBB0_9
## %bb.10:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %r14d
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	_twl4030_sih_irq_chip@GOTPCREL(%rip), %rsi
	callq	_set_irq_chip_and_handler
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_set_irq_chip_data
	movl	%r14d, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_activate_irq
	incl	%r13d
	cmpl	4(%rbx), %r13d
	jb	LBB0_11
	jmp	LBB0_12
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_9:
	xorl	%r13d, %r13d
LBB0_12:
	movq	_twl4030_irq_next@GOTPCREL(%rip), %rax
	addl	%r13d, (%rax)
	movq	%rax, %r13
	movq	_twl4030_irq_base@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_set_irq_data
	movq	_handle_twl4030_sih@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_set_irq_chained_handler
	movl	8(%rbx), %esi
	movl	(%r13), %r8d
	decl	%r8d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_pr_info
	movl	%r14d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_twl4030_irq_next,4,2           ## @twl4030_irq_next
	.comm	_sih_modules,8,3                ## @sih_modules
	.comm	_NR_IRQS,4,2                    ## @NR_IRQS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq %d for %s too big\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_twl4030_sih_do_mask,4,2        ## @twl4030_sih_do_mask
	.comm	_twl4030_sih_do_edge,4,2        ## @twl4030_sih_do_edge
	.comm	_twl4030_sih_irq_chip,4,2       ## @twl4030_sih_irq_chip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_twl4030_irq_base,4,2           ## @twl4030_irq_base
	.comm	_handle_twl4030_sih,4,2         ## @handle_twl4030_sih
L_.str.1:                               ## @.str.1
	.asciz	"twl4030: %s (irq %d) chaining IRQs %d..%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twl4030_sih_setup              ; -- Begin function twl4030_sih_setup
	.p2align	2
_twl4030_sih_setup:                     ; @twl4030_sih_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	neg	w21, w23
Lloh3:
	adrp	x24, _twl4030_irq_next@GOTPAGE
Lloh4:
	ldr	x24, [x24, _twl4030_irq_next@GOTPAGEOFF]
	ldr	w19, [x24]
Lloh5:
	adrp	x26, _sih_modules@GOTPAGE
Lloh6:
	ldr	x26, [x26, _sih_modules@GOTPAGEOFF]
	ldr	x20, [x26]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w25, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	add	x20, x20, #24
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	w25, w0
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.5:
Lloh7:
	adrp	x8, _NR_IRQS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NR_IRQS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w9, w3, [x20, #4]
	add	w2, w9, w19
	cmp	w2, w8
	cset	w0, hi
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cmp	w0, #0
	ccmp	w23, #0, #4, ne
	b.le	LBB0_8
	b	LBB0_15
LBB0_6:
	mov	w25, #0
LBB0_7:
	cmp	w23, #0
	b.gt	LBB0_15
LBB0_8:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, x0
	str	w19, [x0]
	str	x20, [x0, #16]
	mov	w8, #-1
	str	w8, [x0, #12]
	add	x0, x0, #8
Lloh15:
	adrp	x8, _twl4030_sih_do_mask@GOTPAGE
Lloh16:
	ldr	x8, [x8, _twl4030_sih_do_mask@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #4
Lloh18:
	adrp	x8, _twl4030_sih_do_edge@GOTPAGE
Lloh19:
	ldr	x8, [x8, _twl4030_sih_do_edge@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_13
; %bb.10:
	mov	w26, #0
Lloh21:
	adrp	x27, _handle_edge_irq@GOTPAGE
Lloh22:
	ldr	x27, [x27, _handle_edge_irq@GOTPAGEOFF]
Lloh23:
	adrp	x22, _twl4030_sih_irq_chip@GOTPAGE
Lloh24:
	ldr	x22, [x22, _twl4030_sih_irq_chip@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w23, w19, w26
	ldr	w2, [x27]
	mov	x0, x23
	mov	x1, x22
	bl	_set_irq_chip_and_handler
	mov	x0, x23
	mov	x1, x21
	bl	_set_irq_chip_data
	mov	x0, x23
	bl	_activate_irq
	add	w26, w26, #1
	ldr	w8, [x20, #4]
	cmp	w26, w8
	b.lo	LBB0_11
	b	LBB0_14
LBB0_12:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_13:
	mov	w26, #0
LBB0_14:
	ldr	w8, [x24]
	add	w8, w8, w26
	str	w8, [x24]
Lloh28:
	adrp	x8, _twl4030_irq_base@GOTPAGE
Lloh29:
	ldr	x8, [x8, _twl4030_irq_base@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	add	w22, w8, w25
	mov	x0, x22
	mov	x1, x21
	bl	_set_irq_data
Lloh31:
	adrp	x8, _handle_twl4030_sih@GOTPAGE
Lloh32:
	ldr	x8, [x8, _handle_twl4030_sih@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_set_irq_chained_handler
	ldr	w1, [x20, #8]
	ldr	w8, [x24]
	sub	w4, w8, #1
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_pr_info
	mov	x21, x19
LBB0_15:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_twl4030_irq_next,4,2           ; @twl4030_irq_next
	.comm	_sih_modules,8,3                ; @sih_modules
	.comm	_NR_IRQS,4,2                    ; @NR_IRQS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq %d for %s too big\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_twl4030_sih_do_mask,4,2        ; @twl4030_sih_do_mask
	.comm	_twl4030_sih_do_edge,4,2        ; @twl4030_sih_do_edge
	.comm	_twl4030_sih_irq_chip,4,2       ; @twl4030_sih_irq_chip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_twl4030_irq_base,4,2           ; @twl4030_irq_base
	.comm	_handle_twl4030_sih,4,2         ; @handle_twl4030_sih
l_.str.1:                               ; @.str.1
	.asciz	"twl4030: %s (irq %d) chaining IRQs %d..%d\n"

.subsections_via_symbols
