	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_usb2phy_host_port_init
_rockchip_usb2phy_host_port_init:       ## @rockchip_usb2phy_host_port_init
	.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	%rdi, %r14
	movq	_USB2PHY_PORT_HOST@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rsi)
	movq	8(%rdi), %rcx
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rdx, %r15
	movq	%rax, 32(%rsi)
	movl	$1, 8(%rsi)
	leaq	28(%rsi), %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	movq	_rockchip_usb2phy_sm_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_irq_get_byname
	movq	%rax, 16(%rbx)
	movl	(%r14), %edi
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_rockchip_usb2phy_linestate_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%rbx, (%rsp)
	leaq	L_.str.2(%rip), %r9
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	16(%rbx), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB2PHY_PORT_HOST,8,3          ## @USB2PHY_PORT_HOST
	.comm	_rockchip_usb2phy_sm_work,4,2   ## @rockchip_usb2phy_sm_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linestate"

L_.str.1:                               ## @.str.1
	.asciz	"no linestate irq provided\n"

	.comm	_rockchip_usb2phy_linestate_irq,4,2 ## @rockchip_usb2phy_linestate_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"rockchip_usb2phy"

L_.str.3:                               ## @.str.3
	.asciz	"failed to request linestate irq handle\n"

	.no_dead_strip	_rockchip_usb2phy_host_port_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_usb2phy_host_port_init
_rockchip_usb2phy_host_port_init:       ; @rockchip_usb2phy_host_port_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _USB2PHY_PORT_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB2PHY_PORT_HOST@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x1]
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldr	x8, [x8]
	add	x8, x9, x8, lsl #2
	str	x8, [x1, #32]
	mov	w8, #1
	str	w8, [x1, #8]
	add	x0, x1, #28
	bl	_mutex_init
	add	x0, x19, #24
Lloh2:
	adrp	x8, _rockchip_usb2phy_sm_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rockchip_usb2phy_sm_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_irq_get_byname
	mov	x1, x0
	str	x0, [x19, #16]
	ldr	w0, [x20]
	tbnz	x1, #63, LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _rockchip_usb2phy_linestate_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rockchip_usb2phy_linestate_irq@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x5, l_.str.2@PAGE
Lloh14:
	add	x5, x5, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w19, [x19, #16]
LBB0_4:
	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
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_USB2PHY_PORT_HOST,8,3          ; @USB2PHY_PORT_HOST
	.comm	_rockchip_usb2phy_sm_work,4,2   ; @rockchip_usb2phy_sm_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linestate"

l_.str.1:                               ; @.str.1
	.asciz	"no linestate irq provided\n"

	.comm	_rockchip_usb2phy_linestate_irq,4,2 ; @rockchip_usb2phy_linestate_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"rockchip_usb2phy"

l_.str.3:                               ; @.str.3
	.asciz	"failed to request linestate irq handle\n"

	.no_dead_strip	_rockchip_usb2phy_host_port_init
.subsections_via_symbols
