	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_sid_attach
_aw_sid_attach:                         ## @aw_sid_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, %ebx
	callq	_ofw_bus_get_node
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%ebx, 16(%rax)
	movq	_aw_sid_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r14), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %r13
	addq	$8, %r13
	movl	%ebx, %edi
	callq	_device_get_nameunit
	movq	_MTX_DEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_compat_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ofw_bus_search_compatible
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_aw_sid_sc@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movl	%r12d, %edi
	callq	_OF_xref_from_node
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_OF_device_register_xref
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	$8, %ebx
	xorl	%r13d, %r13d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_device_get_sysctl_ctx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_device_get_sysctl_tree
	movl	%eax, %edi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%r14), %rcx
	movq	8(%rcx), %rsi
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTLTYPE_STRING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movl	(%rsi,%rbx), %ecx
	movl	-8(%rsi,%rbx), %r10d
	movl	-4(%rsi,%rbx), %r11d
	movq	%r14, %r15
	movq	_aw_sid_sysctl@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	%r12d, %r9d
	pushq	%r10
	leaq	L_.str.1(%rip), %rax
	pushq	%rax
	pushq	%r14
	movq	%r15, %r14
	pushq	%r11
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	incq	%r13
	movq	(%r15), %rax
	movslq	(%rax), %rax
	addq	$12, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
## %bb.5:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aw_sid_spec,4,2                ## @aw_sid_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate resources for device\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_compat_data,4,2                ## @compat_data
	.comm	_aw_sid_sc,8,3                  ## @aw_sid_sc
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.comm	_CTLTYPE_STRING,4,2             ## @CTLTYPE_STRING
	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
	.comm	_aw_sid_sysctl,4,2              ## @aw_sid_sysctl
L_.str.1:                               ## @.str.1
	.asciz	"A"

	.no_dead_strip	_aw_sid_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_sid_attach
_aw_sid_attach:                         ; @aw_sid_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_ofw_bus_get_node
	mov	x21, x0
	mov	x0, x19
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #16]
Lloh0:
	adrp	x8, _aw_sid_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aw_sid_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x0, #12
	mov	x0, x19
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:
	add	x22, x20, #8
	mov	x0, x19
	bl	_device_get_nameunit
	mov	x1, x0
Lloh8:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, #0
	bl	_mtx_init
Lloh11:
	adrp	x8, _compat_data@GOTPAGE
Lloh12:
	ldr	x8, [x8, _compat_data@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ofw_bus_search_compatible
	ldr	x8, [x0]
	str	x8, [x20]
Lloh14:
	adrp	x8, _aw_sid_sc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _aw_sid_sc@GOTPAGEOFF]
Lloh16:
	str	x20, [x8]
	mov	x0, x21
	bl	_OF_xref_from_node
	mov	x1, x19
	bl	_OF_device_register_xref
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	x23, #0
Lloh17:
	adrp	x24, _OID_AUTO@GOTPAGE
Lloh18:
	ldr	x24, [x24, _OID_AUTO@GOTPAGEOFF]
Lloh19:
	adrp	x25, _CTLTYPE_STRING@GOTPAGE
Lloh20:
	ldr	x25, [x25, _CTLTYPE_STRING@GOTPAGEOFF]
Lloh21:
	adrp	x26, _CTLFLAG_RD@GOTPAGE
Lloh22:
	ldr	x26, [x26, _CTLFLAG_RD@GOTPAGEOFF]
Lloh23:
	adrp	x27, _aw_sid_sysctl@GOTPAGE
Lloh24:
	ldr	x27, [x27, _aw_sid_sysctl@GOTPAGEOFF]
Lloh25:
	adrp	x28, l_.str.1@PAGE
Lloh26:
	add	x28, x28, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_device_get_sysctl_ctx
	mov	x21, x0
	mov	x0, x19
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
	ldr	w2, [x24]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x8, x8, x22
	ldp	w6, w3, [x8, #4]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w4, w10, w9
	ldr	w7, [x27]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x28, [sp]
	mov	x0, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	add	x23, x23, #1
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	add	x22, x22, #12
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_aw_sid_spec,4,2                ; @aw_sid_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate resources for device\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_compat_data,4,2                ; @compat_data
	.comm	_aw_sid_sc,8,3                  ; @aw_sid_sc
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.comm	_CTLTYPE_STRING,4,2             ; @CTLTYPE_STRING
	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
	.comm	_aw_sid_sysctl,4,2              ; @aw_sid_sysctl
l_.str.1:                               ; @.str.1
	.asciz	"A"

	.no_dead_strip	_aw_sid_attach
.subsections_via_symbols
