	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbled_probe
_rbled_probe:                           ## @rbled_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_ofw_bus_get_node
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_ofw_bus_get_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-18(%rbp), %rdx
	movl	%r14d, %edi
	movl	$2, %ecx
	callq	_OF_getprop
	testq	%rax, %rax
	jle	LBB0_1
## %bb.4:
	xorl	%edi, %edi
	callq	_OF_peer
	leaq	L_.str.2(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movl	%eax, %edi
	movl	$6, %ecx
	callq	_OF_getprop
	testq	%rax, %rax
	jle	LBB0_1
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_set_desc
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led"

L_.str.1:                               ## @.str.1
	.asciz	"user_led"

L_.str.2:                               ## @.str.2
	.asciz	"model"

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

L_.str.4:                               ## @.str.4
	.asciz	"RouterBoard LED"

	.no_dead_strip	_rbled_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbled_probe
_rbled_probe:                           ; @rbled_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_ofw_bus_get_node
	mov	x20, x0
	mov	x0, x19
	bl	_ofw_bus_get_name
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #14
	mov	x0, x20
	mov	w3, #2
	bl	_OF_getprop
	cmp	x0, #0
	b.le	LBB0_2
; %bb.5:
	mov	w0, #0
	bl	_OF_peer
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	w3, #6
	bl	_OF_getprop
	cmp	x0, #0
	b.le	LBB0_2
; %bb.6:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.7:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
	mov	w0, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led"

l_.str.1:                               ; @.str.1
	.asciz	"user_led"

l_.str.2:                               ; @.str.2
	.asciz	"model"

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

l_.str.4:                               ; @.str.4
	.asciz	"RouterBoard LED"

	.no_dead_strip	_rbled_probe
.subsections_via_symbols
