	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_init_sih_modules
_twl4030_init_sih_modules:              ## @twl4030_init_sih_modules
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_2:
	movl	%edi, %r14d
	movq	_irq_line@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	leaq	-64(%rbp), %rdi
	movl	$255, %esi
	movl	$16, %edx
	callq	_memset
	movq	_sih_modules@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%r14d, %r13d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	addq	$36, %rbx
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	addq	$40, %rbx
	cmpl	%eax, %r15d
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-36(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-20(%rbx), %edi
	movq	-28(%rbx), %rax
	movl	4(%rax,%r13,8), %edx
	movq	%r14, %rsi
	callq	_twl4030_i2c_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -12(%rbx)
	jne	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	leaq	L_.str.1(%rip), %rcx
	callq	_pr_err
	cmpq	$0, -12(%rbx)
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_TWL4030_SIH_CTRL_COR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbx), %edi
	movl	(%rbx), %edx
	callq	_twl4030_i2c_write_u8
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	leaq	L_.str.2(%rip), %rcx
	callq	_pr_err
	jmp	LBB0_10
LBB0_11:
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_23
## %bb.12:
	xorl	%r15d, %r15d
	leaq	-80(%rbp), %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r15d
	addq	$40, %rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_23
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,8), %edx
	movq	%r14, %rsi
	callq	_twl4030_i2c_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,8), %edx
	movl	(%rbx), %ecx
	movq	%r14, %rsi
	callq	_twl4030_i2c_read
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_22
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	leaq	L_.str.3(%rip), %rcx
	callq	_pr_err
	cmpq	$0, 24(%rbx)
	jne	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,8), %edx
	movl	(%rbx), %ecx
	leaq	-64(%rbp), %rsi
	callq	_twl4030_i2c_write
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	leaq	L_.str.3(%rip), %rcx
	callq	_pr_err
	cmpq	$0, 24(%rbx)
	jne	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,8), %edx
	movl	(%rbx), %ecx
	leaq	-64(%rbp), %rsi
	callq	_twl4030_i2c_write
	jmp	LBB0_22
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_irq_line,4,2                   ## @irq_line
	.comm	_sih_modules,8,3                ## @sih_modules
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"twl4030: err %d initializing %s %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"IMR"

	.comm	_TWL4030_SIH_CTRL_COR_MASK,4,2  ## @TWL4030_SIH_CTRL_COR_MASK
L_.str.2:                               ## @.str.2
	.asciz	"SIH_CTRL"

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

	.no_dead_strip	_twl4030_init_sih_modules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_init_sih_modules
_twl4030_init_sih_modules:              ; @twl4030_init_sih_modules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	w0, #2
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_2:
	mov	x19, x0
Lloh6:
	adrp	x8, _irq_line@GOTPAGE
Lloh7:
	ldr	x8, [x8, _irq_line@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	add	x0, sp, #24
	mov	w1, #255
	mov	w2, #16
	bl	_memset
Lloh9:
	adrp	x22, _sih_modules@GOTPAGE
Lloh10:
	ldr	x22, [x22, _sih_modules@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	w24, w19
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w23, #0
	add	x25, x20, #24
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh15:
	adrp	x26, _TWL4030_SIH_CTRL_COR_MASK@GOTPAGE
Lloh16:
	ldr	x26, [x26, _TWL4030_SIH_CTRL_COR_MASK@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str.2@PAGE
Lloh18:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x25, x25, #40
	cmp	w23, w0
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w3, [x25, #-24]
	cbz	w3, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x25, #-8]
	ldur	x8, [x25, #-16]
	add	x8, x8, x24, lsl #3
	ldr	w2, [x8, #4]
	add	x1, sp, #24
	bl	_twl4030_i2c_write
	tbnz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_9
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	ldr	w2, [x25, #8]
	mov	x0, x19
	mov	x3, x20
	bl	_pr_err
	ldr	x8, [x25]
	cbz	x8, LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x25, #-8]
	ldr	w1, [x26]
	ldr	w2, [x25, #12]
	bl	_twl4030_i2c_write_u8
	tbz	w0, #31, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	ldr	w2, [x25, #8]
	mov	x0, x19
	mov	x3, x21
	bl	_pr_err
	b	LBB0_4
LBB0_11:
	ldr	x19, [x22]
	mov	x0, x19
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.12:
	mov	w21, #0
	add	x23, x19, #16
	lsl	x24, x24, #3
Lloh19:
	adrp	x19, l_.str@PAGE
Lloh20:
	add	x19, x19, l_.str@PAGEOFF
Lloh21:
	adrp	x20, l_.str.3@PAGE
Lloh22:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w21, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #40
	cmp	w21, w0
	b.ge	LBB0_23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w3, [x23, #-16]
	cbz	w3, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x23]
	ldur	x8, [x23, #-8]
	ldr	w2, [x8, x24]
	add	x1, sp, #8
	bl	_twl4030_i2c_read
	tbnz	w0, #31, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x23]
	ldur	x8, [x23, #-8]
	ldr	w2, [x8, x24]
	ldur	w3, [x23, #-16]
	add	x1, sp, #8
	bl	_twl4030_i2c_read
	tbnz	w0, #31, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_13
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	ldr	w2, [x23, #16]
	mov	x0, x19
	mov	x3, x20
	bl	_pr_err
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_17
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x23]
	ldur	x8, [x23, #-8]
	ldr	w2, [x8, x24]
	ldur	w3, [x23, #-16]
	add	x1, sp, #24
	bl	_twl4030_i2c_write
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	ldr	w2, [x23, #16]
	mov	x0, x19
	mov	x3, x20
	bl	_pr_err
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_13
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x23]
	ldur	x8, [x23, #-8]
	ldr	w2, [x8, x24]
	ldur	w3, [x23, #-16]
	add	x1, sp, #24
	bl	_twl4030_i2c_write
	b	LBB0_13
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldr	x8, [sp, #40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_irq_line,4,2                   ; @irq_line
	.comm	_sih_modules,8,3                ; @sih_modules
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"twl4030: err %d initializing %s %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"IMR"

	.comm	_TWL4030_SIH_CTRL_COR_MASK,4,2  ; @TWL4030_SIH_CTRL_COR_MASK
l_.str.2:                               ; @.str.2
	.asciz	"SIH_CTRL"

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

	.no_dead_strip	_twl4030_init_sih_modules
.subsections_via_symbols
