	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirf_hwspinlock_probe
_sirf_hwspinlock_probe:                 ## @sirf_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
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_bank@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HW_SPINLOCK_NUMBER@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	movl	(%rbx), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_of_iomap
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.4:
	movq	%rax, %r14
	movq	8(%r12), %r15
	xorl	%edi, %edi
	callq	_HW_SPINLOCK_OFFSET
	addq	%r14, %rax
	movq	%rax, (%r15)
	cmpl	$2, (%r13)
	jl	LBB0_7
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r15
	movq	%r13, %r14
	movq	8(%r12), %r13
	movl	%ebx, %edi
	callq	_HW_SPINLOCK_OFFSET
	addq	%r15, %rax
	movq	%rax, (%r13,%rbx,8)
	movq	%r14, %r13
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	addq	$8, %rdi
	movl	(%r13), %r8d
	movq	_sirf_hwspinlock_ops@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_hwspin_lock_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_pm_runtime_disable
	movq	(%r12), %rdi
	callq	_iounmap
	movl	%r14d, %r15d
	jmp	LBB0_13
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_bank,4,2                       ## @bank
	.comm	_HW_SPINLOCK_NUMBER,4,2         ## @HW_SPINLOCK_NUMBER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sirf_hwspinlock_ops,4,2        ## @sirf_hwspinlock_ops
	.no_dead_strip	_sirf_hwspinlock_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirf_hwspinlock_probe
_sirf_hwspinlock_probe:                 ; @sirf_hwspinlock_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _bank@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bank@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _HW_SPINLOCK_NUMBER@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HW_SPINLOCK_NUMBER@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_struct_size
	mov	x1, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #0
	bl	_of_iomap
	str	x0, [x20]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	x23, [x20, #8]
	mov	w0, #0
	bl	_HW_SPINLOCK_OFFSET
	add	x8, x0, x21
	str	x8, [x23]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x23, x24, [x20]
	mov	x0, x21
	bl	_HW_SPINLOCK_OFFSET
	add	x8, x0, x23
	str	x8, [x24, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_enable
	add	x0, x20, #8
	ldr	w4, [x22]
Lloh8:
	adrp	x2, _sirf_hwspinlock_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _sirf_hwspinlock_ops@GOTPAGEOFF]
	mov	x1, x19
	mov	w3, #0
	bl	_hwspin_lock_register
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_pm_runtime_disable
	ldr	x0, [x20]
	bl	_iounmap
	b	LBB0_12
LBB0_9:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_bank,4,2                       ; @bank
	.comm	_HW_SPINLOCK_NUMBER,4,2         ; @HW_SPINLOCK_NUMBER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sirf_hwspinlock_ops,4,2        ; @sirf_hwspinlock_ops
	.no_dead_strip	_sirf_hwspinlock_probe
.subsections_via_symbols
