	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_hwspinlock_probe
_qcom_hwspinlock_probe:                 ## @qcom_hwspinlock_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_syscon_node_to_regmap
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movl	$2, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	_QCOM_MUTEX_NUM_LOCKS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	8(,%rax,4), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	cmpl	$0, (%rbx)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movabsq	$133143986176, %r13             ## imm = 0x1F00000000
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %edx
	imull	%ebx, %edx
	addl	-44(%rbp), %edx
	orq	%r13, %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_devm_regmap_field_alloc
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	_QCOM_MUTEX_NUM_LOCKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	_QCOM_MUTEX_NUM_LOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_qcom_hwspinlock_ops@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_hwspin_lock_register
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movl	%ebx, %r14d
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
LBB0_14:
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	subl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syscon"

L_.str.1:                               ## @.str.1
	.asciz	"no syscon property\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"no offset in syscon\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"no stride syscon\n"

	.comm	_QCOM_MUTEX_NUM_LOCKS,4,2       ## @QCOM_MUTEX_NUM_LOCKS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qcom_hwspinlock_ops,4,2        ## @qcom_hwspinlock_ops
	.no_dead_strip	_qcom_hwspinlock_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_hwspinlock_probe
_qcom_hwspinlock_probe:                 ; @qcom_hwspinlock_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_syscon_node_to_regmap
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w2, #1
	bl	_of_property_read_u32_index
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	w2, #2
	bl	_of_property_read_u32_index
	tbnz	w0, #31, LBB0_13
; %bb.6:
Lloh10:
	adrp	x22, _QCOM_MUTEX_NUM_LOCKS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _QCOM_MUTEX_NUM_LOCKS@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #2
	add	w1, w8, #8
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.7:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [sp, #8]
	madd	w8, w9, w23, w8
	orr	x2, x8, #0x1f00000000
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_devm_regmap_field_alloc
	ldr	x8, [x21]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	w4, [x22]
Lloh15:
	adrp	x2, _qcom_hwspinlock_ops@GOTPAGE
Lloh16:
	ldr	x2, [x2, _qcom_hwspinlock_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	w3, #0
	bl	_hwspin_lock_register
	mov	x20, x0
	cbz	w0, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_17
LBB0_12:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syscon"

l_.str.1:                               ; @.str.1
	.asciz	"no syscon property\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"no offset in syscon\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"no stride syscon\n"

	.comm	_QCOM_MUTEX_NUM_LOCKS,4,2       ; @QCOM_MUTEX_NUM_LOCKS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qcom_hwspinlock_ops,4,2        ; @qcom_hwspinlock_ops
	.no_dead_strip	_qcom_hwspinlock_probe
.subsections_via_symbols
