	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_mdm6600_device_power_on
_phy_mdm6600_device_power_on:           ## @phy_mdm6600_device_power_on
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %rax
	movq	40(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_PHY_MDM6600_MODE0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdi
	movq	_PHY_MDM6600_MODE1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %r14
	movq	_PHY_MDM6600_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_PHY_MDM6600_POWER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movq	_PHY_MDM6600_CMD_NO_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_mdm6600_cmd
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movq	_PHY_MDM6600_PHY_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movl	$1, (%r12)
	movl	20(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	leaq	24(%r12), %rbx
	movq	_PHY_MDM6600_ENABLED_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r12), %rax
	movq	_PHY_MDM6600_STATUS_PANIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.2:
	movq	_PHY_MDM6600_STATUS_SHUTDOWN_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.3:
	movl	20(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%r12)
	movl	20(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movq	%r14, %rdi
	callq	_gpiod_direction_input
	movq	%r14, %rdi
	callq	_gpiod_to_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:
	movl	20(%r12), %edi
	movq	_phy_mdm6600_wakeirq_thread@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	20(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_dev_warn
LBB0_9:
	movl	$1, 16(%r12)
	jmp	LBB0_10
LBB0_6:
	movl	%r14d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MDM6600_MODE0,8,3          ## @PHY_MDM6600_MODE0
	.comm	_PHY_MDM6600_MODE1,8,3          ## @PHY_MDM6600_MODE1
	.comm	_PHY_MDM6600_RESET,8,3          ## @PHY_MDM6600_RESET
	.comm	_PHY_MDM6600_POWER,8,3          ## @PHY_MDM6600_POWER
	.comm	_PHY_MDM6600_CMD_NO_BYPASS,4,2  ## @PHY_MDM6600_CMD_NO_BYPASS
	.comm	_PHY_MDM6600_PHY_DELAY_MS,4,2   ## @PHY_MDM6600_PHY_DELAY_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for power up request to complete..\n"

	.comm	_PHY_MDM6600_ENABLED_DELAY_MS,4,2 ## @PHY_MDM6600_ENABLED_DELAY_MS
	.comm	_PHY_MDM6600_STATUS_PANIC,8,3   ## @PHY_MDM6600_STATUS_PANIC
	.comm	_PHY_MDM6600_STATUS_SHUTDOWN_ACK,8,3 ## @PHY_MDM6600_STATUS_SHUTDOWN_ACK
L_.str.1:                               ## @.str.1
	.asciz	"Powered up OK\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"Timed out powering up\n"

	.comm	_phy_mdm6600_wakeirq_thread,4,2 ## @phy_mdm6600_wakeirq_thread
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"mdm6600-wake"

L_.str.4:                               ## @.str.4
	.asciz	"no modem wakeirq irq%i: %i\n"

	.no_dead_strip	_phy_mdm6600_device_power_on
.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_on
_phy_mdm6600_device_power_on:           ; @phy_mdm6600_device_power_on
	.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, x0
	ldp	x9, x8, [x0, #32]
	ldr	x8, [x8]
Lloh0:
	adrp	x10, _PHY_MDM6600_MODE0@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PHY_MDM6600_MODE0@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x0, [x8, x10, lsl #3]
Lloh3:
	adrp	x10, _PHY_MDM6600_MODE1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PHY_MDM6600_MODE1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x20, [x8, x10, lsl #3]
Lloh6:
	adrp	x8, _PHY_MDM6600_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_MDM6600_RESET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x21, [x9, x8, lsl #3]
Lloh9:
	adrp	x8, _PHY_MDM6600_POWER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_MDM6600_POWER@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x22, [x9, x8, lsl #3]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	x0, x20
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
Lloh12:
	adrp	x8, _PHY_MDM6600_CMD_NO_BYPASS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PHY_MDM6600_CMD_NO_BYPASS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_mdm6600_cmd
	mov	x0, x21
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	w0, #100
	bl	_msleep
	mov	w21, #1
	mov	x0, x22
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	mov	w0, #100
	bl	_msleep
	mov	x0, x22
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
Lloh15:
	adrp	x8, _PHY_MDM6600_PHY_DELAY_MS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_MDM6600_PHY_DELAY_MS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msleep
	str	w21, [x19]
	ldr	w0, [x19, #20]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	add	x21, x19, #24
Lloh20:
	adrp	x8, _PHY_MDM6600_ENABLED_DELAY_MS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_MDM6600_ENABLED_DELAY_MS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _PHY_MDM6600_STATUS_PANIC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PHY_MDM6600_STATUS_PANIC@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.2:
Lloh26:
	adrp	x9, _PHY_MDM6600_STATUS_SHUTDOWN_ACK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PHY_MDM6600_STATUS_SHUTDOWN_ACK@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.3:
	ldr	w0, [x19, #20]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	b	LBB0_5
LBB0_4:
	str	wzr, [x19]
	ldr	w0, [x19, #20]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	bl	_gpiod_direction_input
	mov	x0, x20
	bl	_gpiod_to_irq
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	ldr	w0, [x19, #20]
Lloh33:
	adrp	x8, _phy_mdm6600_wakeirq_thread@GOTPAGE
Lloh34:
	ldr	x8, [x8, _phy_mdm6600_wakeirq_thread@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
Lloh36:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w4, w8, w9
Lloh45:
	adrp	x5, l_.str.3@PAGE
Lloh46:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #20]
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_warn
LBB0_8:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_10
LBB0_9:
	mov	x21, x20
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MDM6600_MODE0,8,3          ; @PHY_MDM6600_MODE0
	.comm	_PHY_MDM6600_MODE1,8,3          ; @PHY_MDM6600_MODE1
	.comm	_PHY_MDM6600_RESET,8,3          ; @PHY_MDM6600_RESET
	.comm	_PHY_MDM6600_POWER,8,3          ; @PHY_MDM6600_POWER
	.comm	_PHY_MDM6600_CMD_NO_BYPASS,4,2  ; @PHY_MDM6600_CMD_NO_BYPASS
	.comm	_PHY_MDM6600_PHY_DELAY_MS,4,2   ; @PHY_MDM6600_PHY_DELAY_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for power up request to complete..\n"

	.comm	_PHY_MDM6600_ENABLED_DELAY_MS,4,2 ; @PHY_MDM6600_ENABLED_DELAY_MS
	.comm	_PHY_MDM6600_STATUS_PANIC,8,3   ; @PHY_MDM6600_STATUS_PANIC
	.comm	_PHY_MDM6600_STATUS_SHUTDOWN_ACK,8,3 ; @PHY_MDM6600_STATUS_SHUTDOWN_ACK
l_.str.1:                               ; @.str.1
	.asciz	"Powered up OK\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"Timed out powering up\n"

	.comm	_phy_mdm6600_wakeirq_thread,4,2 ; @phy_mdm6600_wakeirq_thread
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"mdm6600-wake"

l_.str.4:                               ; @.str.4
	.asciz	"no modem wakeirq irq%i: %i\n"

	.no_dead_strip	_phy_mdm6600_device_power_on
.subsections_via_symbols
