	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schppm_attach
_schppm_attach:                         ## @schppm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_schppm_res_spec@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	(%rax), %edx
	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
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	%ebx, %edi
	callq	_bus_release_resources
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	_SCHPPM_ESTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCHPPM_ESTAR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_SCHPPM_READ
	movq	_SCHPPM_ESTAR_CTRL_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.5:
	cltq
	leaq	l_reltable.schppm_attach(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
LBB0_6:
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_schppm_res_spec,4,2            ## @schppm_res_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate resources\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"running at "

	.comm	_SCHPPM_ESTAR,4,2               ## @SCHPPM_ESTAR
	.comm	_SCHPPM_ESTAR_CTRL,4,2          ## @SCHPPM_ESTAR_CTRL
	.comm	_SCHPPM_ESTAR_CTRL_MASK,4,2     ## @SCHPPM_ESTAR_CTRL_MASK
L_.str.2:                               ## @.str.2
	.asciz	"full"

L_.str.3:                               ## @.str.3
	.asciz	"half"

L_.str.4:                               ## @.str.4
	.asciz	"1/32"

L_.str.5:                               ## @.str.5
	.asciz	"unknown"

L_str:                                  ## @str
	.asciz	" speed"

	.no_dead_strip	_schppm_attach
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.schppm_attach
l_reltable.schppm_attach:
	.long	L_.str.4-l_reltable.schppm_attach
	.long	L_.str.3-l_reltable.schppm_attach
	.long	L_.str.2-l_reltable.schppm_attach

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schppm_attach
_schppm_attach:                         ; @schppm_attach
	.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	x20, x0
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x21, _schppm_res_spec@GOTPAGE
Lloh1:
	ldr	x21, [x21, _schppm_res_spec@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x0]
	mov	x0, x20
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	ldr	w1, [x21]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_bus_release_resources
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
Lloh7:
	adrp	x8, _bootverbose@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh12:
	adrp	x8, _SCHPPM_ESTAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCHPPM_ESTAR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SCHPPM_ESTAR_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCHPPM_ESTAR_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_SCHPPM_READ
Lloh18:
	adrp	x8, _SCHPPM_ESTAR_CTRL_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCHPPM_ESTAR_CTRL_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh21:
	adrp	x9, l_switch.table.schppm_attach@PAGE
Lloh22:
	add	x9, x9, l_switch.table.schppm_attach@PAGEOFF
	ldr	x0, [x9, w8, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_6:
	bl	_printf
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_schppm_res_spec,4,2            ; @schppm_res_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate resources\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"running at "

	.comm	_SCHPPM_ESTAR,4,2               ; @SCHPPM_ESTAR
	.comm	_SCHPPM_ESTAR_CTRL,4,2          ; @SCHPPM_ESTAR_CTRL
	.comm	_SCHPPM_ESTAR_CTRL_MASK,4,2     ; @SCHPPM_ESTAR_CTRL_MASK
l_.str.2:                               ; @.str.2
	.asciz	"full"

l_.str.3:                               ; @.str.3
	.asciz	"half"

l_.str.4:                               ; @.str.4
	.asciz	"1/32"

l_.str.5:                               ; @.str.5
	.asciz	"unknown"

l_str:                                  ; @str
	.asciz	" speed"

	.no_dead_strip	_schppm_attach
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.schppm_attach
l_switch.table.schppm_attach:
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2

.subsections_via_symbols
