	.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	%edx, %r13d
	movq	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_sih_modules@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_nr_sih_modules@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	addq	$24, %r15
	cmpl	%ebx, %eax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%r15)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r15)
	je	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.7:
	negl	%r14d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	%r14d, %r15d
	jmp	LBB0_17
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, (%rax)
	movq	%r15, 24(%rax)
	movl	$-1, 20(%rax)
	movq	%rax, %r14
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	cmpl	$0, 4(%r15)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.12:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %r14d
	movl	%r14d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_irq_set_chip_data
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	_twl4030_sih_irq_chip@GOTPCREL(%rip), %rsi
	callq	_irq_set_chip_and_handler
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_irq_set_nested_thread
	movl	%r14d, %edi
	callq	_activate_irq
	incl	%r13d
	cmpl	4(%r15), %r13d
	jl	LBB0_13
	jmp	LBB0_14
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_11:
	xorl	%r13d, %r13d
LBB0_14:
	movq	_twl4030_irq_base@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_irq_set_handler_data
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_kasprintf
	movq	%rax, 8(%r14)
	movq	_handle_twl4030_sih@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_EARLY_RESUME@GOTPCREL(%rip), %rsi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movl	8(%r15), %eax
LBB0_16:
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_request_threaded_irq
	movl	%eax, %r14d
	movl	8(%r15), %edx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leal	(%r15,%r13), %r9d
	decl	%r9d
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_dev_info
	testl	%r14d, %r14d
	cmovsl	%r14d, %r15d
LBB0_17:
	movl	%r15d, %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	_sih_modules,8,3                ## @sih_modules
	.comm	_nr_sih_modules,4,2             ## @nr_sih_modules
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"module to setup SIH for not found\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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
L_.str.1:                               ## @.str.1
	.asciz	"twl4030_%s"

	.comm	_handle_twl4030_sih,4,2         ## @handle_twl4030_sih
	.comm	_IRQF_EARLY_RESUME,4,2          ## @IRQF_EARLY_RESUME
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"%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	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _sih_modules@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sih_modules@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	x24, [x9]
Lloh6:
	adrp	x9, _nr_sih_modules@GOTPAGE
Lloh7:
	ldr	x9, [x9, _nr_sih_modules@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	subs	w10, w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w25, #0
	mov	w11, #24
	umaddl	x10, w10, w11, x24
	add	x10, x10, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	add	x24, x24, #24
	cmp	w9, w25
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x24]
	cmp	w11, w1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x24, #16]
	cbz	x11, LBB0_2
	b	LBB0_9
LBB0_5:
	mov	x24, x10
	b	LBB0_7
LBB0_6:
	mov	w9, #0
LBB0_7:
	mov	x25, x9
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.8:
	neg	w19, w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_18
LBB0_9:
Lloh11:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x21, x0
	str	w19, [x0]
	str	x24, [x0, #24]
	mov	w8, #-1
	str	w8, [x0, #20]
	add	x0, x0, #16
	bl	_mutex_init
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	w26, #0
Lloh13:
	adrp	x28, _handle_edge_irq@GOTPAGE
Lloh14:
	ldr	x28, [x28, _handle_edge_irq@GOTPAGEOFF]
Lloh15:
	adrp	x22, _twl4030_sih_irq_chip@GOTPAGE
Lloh16:
	ldr	x22, [x22, _twl4030_sih_irq_chip@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	w23, w19, w26
	mov	x0, x23
	mov	x1, x21
	bl	_irq_set_chip_data
	ldr	w2, [x28]
	mov	x0, x23
	mov	x1, x22
	bl	_irq_set_chip_and_handler
	mov	x0, x23
	mov	w1, #1
	bl	_irq_set_nested_thread
	mov	x0, x23
	bl	_activate_irq
	add	w26, w26, #1
	ldr	w8, [x24, #4]
	cmp	w26, w8
	b.lt	LBB0_12
	b	LBB0_15
LBB0_13:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_18
LBB0_14:
	mov	w26, #0
LBB0_15:
Lloh20:
	adrp	x8, _twl4030_irq_base@GOTPAGE
Lloh21:
	ldr	x8, [x8, _twl4030_irq_base@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	add	w22, w8, w25
	mov	x0, x22
	mov	x1, x21
	bl	_irq_set_handler_data
	ldr	w0, [x27]
	ldr	w2, [x24, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_kasprintf
	mov	x4, x0
	str	x0, [x21, #8]
Lloh25:
	adrp	x8, _handle_twl4030_sih@GOTPAGE
Lloh26:
	ldr	x8, [x8, _handle_twl4030_sih@GOTPAGEOFF]
Lloh27:
	adrp	x9, _IRQF_EARLY_RESUME@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IRQF_EARLY_RESUME@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	ldr	w8, [x9]
Lloh31:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w3, w9, w8
	cbnz	x0, LBB0_17
; %bb.16:
	ldr	w4, [x24, #8]
LBB0_17:
	mov	x0, x22
	mov	x1, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, #0
	bl	_request_threaded_irq
	mov	x21, x0
	ldr	w2, [x24, #8]
	add	w8, w26, w19
	sub	w5, w8, #1
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	mov	x4, x19
	bl	_dev_info
	cmp	w21, #0
	csel	w19, w21, w19, lt
LBB0_18:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sih_modules,8,3                ; @sih_modules
	.comm	_nr_sih_modules,4,2             ; @nr_sih_modules
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"module to setup SIH for not found\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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
l_.str.1:                               ; @.str.1
	.asciz	"twl4030_%s"

	.comm	_handle_twl4030_sih,4,2         ; @handle_twl4030_sih
	.comm	_IRQF_EARLY_RESUME,4,2          ; @IRQF_EARLY_RESUME
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"%s (irq %d) chaining IRQs %d..%d\n"

.subsections_via_symbols
