	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart_phyp_cnprobe
_uart_phyp_cnprobe:                     ## @uart_phyp_cnprobe
	.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	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-104(%rbp), %rdx
	movl	%eax, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	cmpl	$8, %eax
	jne	LBB0_8
## %bb.2:
	movq	-104(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	callq	_OF_instance_to_package
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movl	%eax, %edi
	movl	$64, %ecx
	callq	_OF_getprop
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movl	%r14d, _uart_phyp_cnprobe.sc(%rip)
	leaq	_uart_phyp_cnprobe.sc(%rip), %r14
	movq	%r14, %rdi
	callq	_uart_phyp_probe_node
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	_CN_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_MTX_SPIN@GOTPCREL(%rip), %rax
	movq	_MTX_QUIET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MTX_NOWITNESS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	_uart_phyp_cnprobe.sc+4(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_CN_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_console_sc@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_uart_phyp_cnprobe.sc,8,2 ## @uart_phyp_cnprobe.sc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/chosen"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"uart_phyp"

	.comm	_MTX_SPIN,4,2                   ## @MTX_SPIN
	.comm	_MTX_QUIET,4,2                  ## @MTX_QUIET
	.comm	_MTX_NOWITNESS,4,2              ## @MTX_NOWITNESS
	.comm	_CN_NORMAL,4,2                  ## @CN_NORMAL
	.comm	_console_sc,8,3                 ## @console_sc
	.comm	_CN_DEAD,4,2                    ## @CN_DEAD
	.no_dead_strip	_uart_phyp_cnprobe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart_phyp_cnprobe
_uart_phyp_cnprobe:                     ; @uart_phyp_cnprobe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	mov	w3, #8
	bl	_OF_getencprop
	mov	x8, x0
	ldr	x0, [sp]
	cmp	w8, #8
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_6
; %bb.2:
	bl	_OF_instance_to_package
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	mov	x20, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	w3, #64
	bl	_OF_getprop
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x21, _uart_phyp_cnprobe.sc@PAGE
Lloh12:
	add	x21, x21, _uart_phyp_cnprobe.sc@PAGEOFF
	str	w20, [x21]
	mov	x0, x21
	bl	_uart_phyp_probe_node
	cbz	x0, LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _CN_DEAD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CN_DEAD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
Lloh19:
	adrp	x8, _MTX_SPIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MTX_SPIN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _MTX_QUIET@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MTX_QUIET@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _MTX_NOWITNESS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MTX_NOWITNESS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x0, x21, #4
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh30:
	adrp	x8, _CN_NORMAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CN_NORMAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh33:
	adrp	x8, _console_sc@GOTPAGE
Lloh34:
	ldr	x8, [x8, _console_sc@GOTPAGEOFF]
Lloh35:
	str	x21, [x8]
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_uart_phyp_cnprobe.sc,8,2 ; @uart_phyp_cnprobe.sc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/chosen"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"uart_phyp"

	.comm	_MTX_SPIN,4,2                   ; @MTX_SPIN
	.comm	_MTX_QUIET,4,2                  ; @MTX_QUIET
	.comm	_MTX_NOWITNESS,4,2              ; @MTX_NOWITNESS
	.comm	_CN_NORMAL,4,2                  ; @CN_NORMAL
	.comm	_console_sc,8,3                 ; @console_sc
	.comm	_CN_DEAD,4,2                    ; @CN_DEAD
	.no_dead_strip	_uart_phyp_cnprobe
.subsections_via_symbols
