	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_usb_phy_probe
_aml8726_usb_phy_probe:                 ## @aml8726_usb_phy_probe
	.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
	movl	%edi, %ebx
	callq	_ofw_bus_status_okay
	movq	_ENXIO@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_ofw_bus_is_compatible
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	callq	_ofw_bus_is_compatible
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movq	_aml8726_soc_hw_rev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	%ebx, %edi
	callq	_device_set_desc
	movq	_BUS_PROBE_DEFAULT@GOTPCREL(%rip), %r14
LBB0_4:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amlogic,aml8726-m6-usb-phy"

L_.str.1:                               ## @.str.1
	.asciz	"amlogic,aml8726-m8-usb-phy"

	.comm	_aml8726_soc_hw_rev,4,2         ## @aml8726_soc_hw_rev
L_.str.2:                               ## @.str.2
	.asciz	"Amlogic aml8726-m8 USB PHY"

L_.str.3:                               ## @.str.3
	.asciz	"Amlogic aml8726-m6 USB PHY"

	.comm	_BUS_PROBE_DEFAULT,4,2          ## @BUS_PROBE_DEFAULT
	.no_dead_strip	_aml8726_usb_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_usb_phy_probe
_aml8726_usb_phy_probe:                 ; @aml8726_usb_phy_probe
	.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
	bl	_ofw_bus_status_okay
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ofw_bus_is_compatible
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ofw_bus_is_compatible
	cbz	w0, LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _aml8726_soc_hw_rev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _aml8726_soc_hw_rev@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffe
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh9:
	adrp	x10, l_.str.2@PAGE
Lloh10:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #128
	csel	x1, x10, x9, eq
	mov	x0, x19
	bl	_device_set_desc
Lloh11:
	adrp	x8, _BUS_PROBE_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUS_PROBE_DEFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amlogic,aml8726-m6-usb-phy"

l_.str.1:                               ; @.str.1
	.asciz	"amlogic,aml8726-m8-usb-phy"

	.comm	_aml8726_soc_hw_rev,4,2         ; @aml8726_soc_hw_rev
l_.str.2:                               ; @.str.2
	.asciz	"Amlogic aml8726-m8 USB PHY"

l_.str.3:                               ; @.str.3
	.asciz	"Amlogic aml8726-m6 USB PHY"

	.comm	_BUS_PROBE_DEFAULT,4,2          ; @BUS_PROBE_DEFAULT
	.no_dead_strip	_aml8726_usb_phy_probe
.subsections_via_symbols
