	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db8500_prcmu_modem_reset       ## -- Begin function db8500_prcmu_modem_reset
	.p2align	4, 0x90
_db8500_prcmu_modem_reset:              ## @db8500_prcmu_modem_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mb1_transfer@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_PRCM_MBOX_CPU_VAL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_readl
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_MBOX_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_2
LBB0_3:
	movq	_MB1H_RESET_MODEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tcdm_base@GOTPCREL(%rip), %rax
	movq	_PRCM_MBOX_HEADER_REQ_MB1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_writeb
	movl	$1, %edi
	callq	_MBOX_BIT
	movq	_PRCM_MBOX_CPU_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_writel
	leaq	4(%r14), %rdi
	callq	_wait_for_completion
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mb1_transfer,8,2               ## @mb1_transfer
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ## @PRCM_MBOX_CPU_VAL
	.comm	_MB1H_RESET_MODEM,4,2           ## @MB1H_RESET_MODEM
	.comm	_tcdm_base,8,3                  ## @tcdm_base
	.comm	_PRCM_MBOX_HEADER_REQ_MB1,8,3   ## @PRCM_MBOX_HEADER_REQ_MB1
	.comm	_PRCM_MBOX_CPU_SET,4,2          ## @PRCM_MBOX_CPU_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db8500_prcmu_modem_reset       ; -- Begin function db8500_prcmu_modem_reset
	.p2align	2
_db8500_prcmu_modem_reset:              ; @db8500_prcmu_modem_reset
	.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
Lloh0:
	adrp	x19, _mb1_transfer@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mb1_transfer@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x21, _PRCM_MBOX_CPU_VAL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PRCM_MBOX_CPU_VAL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_readl
	mov	x20, x0
	mov	w0, #1
	bl	_MBOX_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_3:
Lloh4:
	adrp	x8, _MB1H_RESET_MODEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MB1H_RESET_MODEM@GOTPAGEOFF]
Lloh6:
	adrp	x9, _tcdm_base@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tcdm_base@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	ldr	x8, [x9]
Lloh10:
	adrp	x9, _PRCM_MBOX_HEADER_REQ_MB1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRCM_MBOX_HEADER_REQ_MB1@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	mov	w0, #1
	bl	_MBOX_BIT
Lloh13:
	adrp	x8, _PRCM_MBOX_CPU_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PRCM_MBOX_CPU_SET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_writel
	add	x0, x19, #4
	bl	_wait_for_completion
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mb1_transfer,8,2               ; @mb1_transfer
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ; @PRCM_MBOX_CPU_VAL
	.comm	_MB1H_RESET_MODEM,4,2           ; @MB1H_RESET_MODEM
	.comm	_tcdm_base,8,3                  ; @tcdm_base
	.comm	_PRCM_MBOX_HEADER_REQ_MB1,8,3   ; @PRCM_MBOX_HEADER_REQ_MB1
	.comm	_PRCM_MBOX_CPU_SET,4,2          ; @PRCM_MBOX_CPU_SET
.subsections_via_symbols
