	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_resc_lock              ## -- Begin function qed_mcp_resc_lock
	.p2align	4, 0x90
_qed_mcp_resc_lock:                     ## @qed_mcp_resc_lock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$-1, %rbx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%r12)
	movl	16(%r12), %edi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	callq	_msleep
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_udelay
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	___qed_mcp_resc_lock
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 8(%r12)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_1
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_resc_lock              ; -- Begin function qed_mcp_resc_lock
	.p2align	2
_qed_mcp_resc_lock:                     ; @qed_mcp_resc_lock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x22, #1
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #1000
	bl	_DIV_ROUND_UP
	bl	_msleep
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_udelay
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	___qed_mcp_resc_lock
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	add	x22, x22, #1
	cmp	x22, x8
	b.lt	LBB0_1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
