	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcsi2_probe_resources
_rcsi2_probe_resources:                 ## @rcsi2_probe_resources
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	4(%r14), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_rcsi2_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_rcsi2_irq_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_reset_control_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_rcsi2_irq,4,2                  ## @rcsi2_irq
	.comm	_rcsi2_irq_thread,4,2           ## @rcsi2_irq_thread
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.no_dead_strip	_rcsi2_probe_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcsi2_probe_resources
_rcsi2_probe_resources:                 ; @rcsi2_probe_resources
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _rcsi2_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rcsi2_irq@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _rcsi2_irq_thread@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rcsi2_irq_thread@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x1, x0
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_reset_control_get
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_rcsi2_irq,4,2                  ; @rcsi2_irq
	.comm	_rcsi2_irq_thread,4,2           ; @rcsi2_irq_thread
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.no_dead_strip	_rcsi2_probe_resources
.subsections_via_symbols
