	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc_probe
_sc_probe:                              ## @sc_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	_device_get_unit
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_ofw_bus_get_name
	movq	_SC_DRIVER_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_SC_MD_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_set_desc
	movl	%ebx, %edi
	callq	_device_get_flags
	movq	_SC_MD_FLAGS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sc_probe_unit                  ## TAILCALL
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_DRIVER_NAME,4,2             ## @SC_DRIVER_NAME
	.comm	_SC_MD_MAX,4,2                  ## @SC_MD_MAX
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"System console"

	.comm	_SC_MD_FLAGS,4,2                ## @SC_MD_FLAGS
	.no_dead_strip	_sc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc_probe
_sc_probe:                              ; @sc_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	x20, x0
	bl	_device_get_unit
	mov	x19, x0
	mov	x0, x20
	bl	_ofw_bus_get_name
Lloh0:
	adrp	x8, _SC_DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC_DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
Lloh3:
	adrp	x8, _SC_MD_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_MD_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w19, w8, #0, eq
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_set_desc
	mov	x0, x20
	bl	_device_get_flags
Lloh11:
	adrp	x8, _SC_MD_FLAGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SC_MD_FLAGS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sc_probe_unit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_DRIVER_NAME,4,2             ; @SC_DRIVER_NAME
	.comm	_SC_MD_MAX,4,2                  ; @SC_MD_MAX
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"System console"

	.comm	_SC_MD_FLAGS,4,2                ; @SC_MD_FLAGS
	.no_dead_strip	_sc_probe
.subsections_via_symbols
