	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_attach
_soc_attach:                            ## @soc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movl	%r14d, (%rax)
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_simplebus_init
	movl	%r14d, %edi
	callq	_bus_generic_probe
	movl	%ebx, %edi
	callq	_OF_child
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_simplebus_add_device
	movl	%ebx, %edi
	callq	_OF_peer
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_3
LBB0_4:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bus_generic_attach             ## TAILCALL
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_soc_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_attach
_soc_attach:                            ; @soc_attach
	.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	_device_get_softc
	str	w19, [x0]
	mov	x0, x19
	bl	_ofw_bus_get_node
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_simplebus_init
	mov	x0, x19
	bl	_bus_generic_probe
	mov	x0, x20
	bl	_OF_child
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	mov	w4, #-1
	mov	x5, #0
	bl	_simplebus_add_device
	mov	x0, x20
	bl	_OF_peer
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_3
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bus_generic_attach
LBB0_5:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_soc_attach
.subsections_via_symbols
