	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awusbphy_attach
_awusbphy_attach:                       ## @awusbphy_attach
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_awusbphy_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_2
LBB0_3:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	movq	_awusbphy_phynode_class@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	%ebx, -48(%rbp)
	movl	%r13d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, -44(%rbp)
	movl	%r13d, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_phynode_create
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_phynode_register
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	movq	(%r14), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_5
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize USB PHY, error %d\n"

	.comm	_awusbphy_phynode_class,4,2     ## @awusbphy_phynode_class
L_.str.1:                               ## @.str.1
	.asciz	"failed to create USB PHY\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_awusbphy_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awusbphy_attach
_awusbphy_attach:                       ; @awusbphy_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x19
	bl	_awusbphy_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_9
LBB0_2:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
Lloh2:
	adrp	x21, _awusbphy_phynode_class@GOTPAGE
Lloh3:
	ldr	x21, [x21, _awusbphy_phynode_class@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	str	w22, [sp, #8]
	mov	x0, x19
	bl	_ofw_bus_get_node
	str	w0, [sp, #12]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_phynode_create
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_phynode_register
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w22, w8
	b.lt	LBB0_4
LBB0_7:
	mov	w21, #0
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_printf
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize USB PHY, error %d\n"

	.comm	_awusbphy_phynode_class,4,2     ; @awusbphy_phynode_class
l_.str.1:                               ; @.str.1
	.asciz	"failed to create USB PHY\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_awusbphy_attach
.subsections_via_symbols
