	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_mdm6600_device_power_off
_phy_mdm6600_device_power_off:          ## @phy_mdm6600_device_power_off
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_PHY_MDM6600_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movl	$0, (%rdi)
	movq	_PHY_MDM6600_CMD_BP_SHUTDOWN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phy_mdm6600_cmd
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	leaq	20(%rbx), %r14
	movl	$5000, %edi                     ## imm = 0x1388
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_PHY_MDM6600_STATUS_PANIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_3:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MDM6600_RESET,8,3          ## @PHY_MDM6600_RESET
	.comm	_PHY_MDM6600_CMD_BP_SHUTDOWN_REQ,4,2 ## @PHY_MDM6600_CMD_BP_SHUTDOWN_REQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for power down request to complete.. "

	.comm	_PHY_MDM6600_STATUS_PANIC,8,3   ## @PHY_MDM6600_STATUS_PANIC
L_.str.1:                               ## @.str.1
	.asciz	"Powered down OK\n"

L_.str.2:                               ## @.str.2
	.asciz	"Timed out powering down\n"

	.no_dead_strip	_phy_mdm6600_device_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_mdm6600_device_power_off
_phy_mdm6600_device_power_off:          ; @phy_mdm6600_device_power_off
	.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	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _PHY_MDM6600_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_MDM6600_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
	str	wzr, [x0]
Lloh3:
	adrp	x8, _PHY_MDM6600_CMD_BP_SHUTDOWN_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_MDM6600_CMD_BP_SHUTDOWN_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_phy_mdm6600_cmd
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	add	x20, x19, #20
	mov	w0, #5000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _PHY_MDM6600_STATUS_PANIC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PHY_MDM6600_STATUS_PANIC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_info
LBB0_3:
	ldr	w0, [x19, #16]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MDM6600_RESET,8,3          ; @PHY_MDM6600_RESET
	.comm	_PHY_MDM6600_CMD_BP_SHUTDOWN_REQ,4,2 ; @PHY_MDM6600_CMD_BP_SHUTDOWN_REQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for power down request to complete.. "

	.comm	_PHY_MDM6600_STATUS_PANIC,8,3   ; @PHY_MDM6600_STATUS_PANIC
l_.str.1:                               ; @.str.1
	.asciz	"Powered down OK\n"

l_.str.2:                               ; @.str.2
	.asciz	"Timed out powering down\n"

	.no_dead_strip	_phy_mdm6600_device_power_off
.subsections_via_symbols
