	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_usb2phy_linestate_irq
_rockchip_usb2phy_linestate_irq:        ## @rockchip_usb2phy_linestate_irq
	.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	%rsi, %rbx
	movq	40(%rsi), %rax
	movl	(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movl	(%rax), %edi
	movq	32(%rbx), %rsi
	addq	$8, %rsi
	callq	_property_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r14), %edi
	movq	32(%rbx), %rsi
	addq	$4, %rsi
	xorl	%edx, %edx
	callq	_property_enable
	movl	(%r14), %edi
	movq	32(%rbx), %rsi
	movl	$1, %edx
	callq	_property_enable
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	movq	_USB2PHY_PORT_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_rockchip_usb2phy_sm_work
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_5:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_USB2PHY_PORT_HOST,8,3          ## @USB2PHY_PORT_HOST
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rockchip_usb2phy_linestate_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_usb2phy_linestate_irq
_rockchip_usb2phy_linestate_irq:        ; @rockchip_usb2phy_linestate_irq
	.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, x1
	ldr	x8, [x1, #40]
	ldr	w0, [x8]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w0, [x0]
	ldr	x8, [x19, #32]
	add	x1, x8, #8
	bl	_property_enabled
	cbz	w0, LBB0_5
; %bb.1:
	add	x21, x19, #24
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	add	x1, x8, #4
	mov	w2, #0
	bl	_property_enable
	ldr	w0, [x20]
	ldr	x1, [x19, #32]
	mov	w2, #1
	bl	_property_enable
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _USB2PHY_PORT_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB2PHY_PORT_HOST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x0, x19, #8
	bl	_rockchip_usb2phy_sm_work
LBB0_4:
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_USB2PHY_PORT_HOST,8,3          ; @USB2PHY_PORT_HOST
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rockchip_usb2phy_linestate_irq
.subsections_via_symbols
