	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_i2c_hook_irqs
_sh_mobile_i2c_hook_irqs:               ## @sh_mobile_i2c_hook_irqs
	.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	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %r12
	cmpq	8(%r14), %r12
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_sh_mobile_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_dev_name
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%r12), %rax
	cmpq	8(%r14), %r12
	movq	%rax, %r12
	jl	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -64(%rbp)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_platform_get_resource
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	cmovnel	%eax, %r15d
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r15d
	movq	%r12, -64(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	callq	_dev_err
LBB0_9:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_sh_mobile_i2c_isr,4,2          ## @sh_mobile_i2c_isr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot request IRQ %pa\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_sh_mobile_i2c_hook_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_i2c_hook_irqs
_sh_mobile_i2c_hook_irqs:               ; @sh_mobile_i2c_hook_irqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IORESOURCE_IRQ@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	w22, #0
Lloh2:
	adrp	x27, _sh_mobile_i2c_isr@GOTPAGE
Lloh3:
	ldr	x27, [x27, _sh_mobile_i2c_isr@GOTPAGEOFF]
	mov	x23, x21
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldp	x24, x8, [x23]
	cmp	x24, x8
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x24
	b	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w25, [x27]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x24, #1
	ldr	x9, [x23, #8]
	cmp	x24, x9
	mov	x24, x8
	b.lt	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp, #8]
	add	w22, w22, #1
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_platform_get_resource
	mov	x23, x0
	cbnz	x0, LBB0_2
LBB0_7:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x21, #0
	csneg	w25, wzr, w8, ne
	b	LBB0_9
LBB0_8:
	mov	x25, x0
	str	x24, [sp, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_dev_err
LBB0_9:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_sh_mobile_i2c_isr,4,2          ; @sh_mobile_i2c_isr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot request IRQ %pa\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_sh_mobile_i2c_hook_irqs
.subsections_via_symbols
