	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_uefi_con_out             ## -- Begin function parse_uefi_con_out
	.p2align	4, 0x90
_parse_uefi_con_out:                    ## @parse_uefi_con_out
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$4096, -4160(%rbp)              ## imm = 0x1000
	leaq	L_.str(%rip), %rdi
	leaq	-4144(%rbp), %rbx
	leaq	-4160(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_efi_global_getenv
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	-4160(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	leaq	(%rax,%rbp), %r15
	addq	$-4144, %r15                    ## imm = 0xEFD0
	movl	$0, -4152(%rbp)                 ## 4-byte Folded Spill
	movq	_ACPI_DEVICE_PATH@GOTPCREL(%rip), %r13
	movl	$0, -4148(%rbp)                 ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_setenv_int
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_NextDevicePathNode
	movq	%rax, %rbx
	cmpq	%rax, %r15
	jbe	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathType
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathSubType
	movq	_ACPI_DP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	callq	_EISA_ID_TO_NUM
	xorl	%r14d, %r14d
	cmpl	$1281, %eax                     ## imm = 0x501
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_setenv_int
	incl	%r12d
	movl	%r12d, -4148(%rbp)              ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathType
	movq	_MESSAGING_DEVICE_PATH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathSubType
	movq	_MSG_UART_DP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathType
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathSubType
	movq	_ACPI_ADR_DP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	xorl	%r14d, %r14d
	movl	%r12d, -4152(%rbp)              ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathType
	xorl	%r14d, %r14d
	movq	_HARDWARE_DEVICE_PATH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_DevicePathSubType
	xorl	%r14d, %r14d
	movq	_HW_PCI_DP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r14b
	jmp	LBB0_17
LBB0_1:
	movq	_RB_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_3:
	xorl	%r12d, %r12d
	movl	$0, -4148(%rbp)                 ## 4-byte Folded Spill
	movl	$0, -4152(%rbp)                 ## 4-byte Folded Spill
                                        ## implicit-def: $r14d
LBB0_18:
	incl	%r12d
	movl	-4152(%rbp), %eax               ## 4-byte Reload
	testl	%eax, %eax
	cmovnel	%eax, %r12d
	testl	%r14d, %r14d
	cmovel	%eax, %r12d
	testl	%r12d, %r12d
	movl	-4148(%rbp), %ecx               ## 4-byte Reload
	je	LBB0_22
## %bb.19:
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.20:
	movq	_RB_MULTIPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, %ecx
	jge	LBB0_25
## %bb.21:
	movq	_RB_SERIAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_25
LBB0_22:
	testl	%ecx, %ecx
	je	LBB0_24
## %bb.23:
	movq	_RB_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_24:
	movl	%ecx, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ConOut"

	.comm	_EFI_SUCCESS,4,2                ## @EFI_SUCCESS
	.comm	_RB_SERIAL,4,2                  ## @RB_SERIAL
	.comm	_ACPI_DEVICE_PATH,8,3           ## @ACPI_DEVICE_PATH
	.comm	_ACPI_DP,8,3                    ## @ACPI_DP
L_.str.1:                               ## @.str.1
	.asciz	"efi_8250_uid"

	.comm	_MESSAGING_DEVICE_PATH,8,3      ## @MESSAGING_DEVICE_PATH
	.comm	_MSG_UART_DP,8,3                ## @MSG_UART_DP
L_.str.2:                               ## @.str.2
	.asciz	"efi_com_speed"

	.comm	_ACPI_ADR_DP,8,3                ## @ACPI_ADR_DP
	.comm	_HARDWARE_DEVICE_PATH,8,3       ## @HARDWARE_DEVICE_PATH
	.comm	_HW_PCI_DP,8,3                  ## @HW_PCI_DP
	.comm	_RB_MULTIPLE,4,2                ## @RB_MULTIPLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_uefi_con_out             ; -- Begin function parse_uefi_con_out
	.p2align	2
_parse_uefi_con_out:                    ; @parse_uefi_con_out
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w8, #4096
	str	x8, [sp, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x19, sp, #16
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_efi_global_getenv
Lloh7:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.2:
	mov	w24, #0
	mov	w22, #0
	mov	w23, #0
	add	x25, x19, x8
	add	x19, sp, #16
Lloh10:
	adrp	x26, _ACPI_DEVICE_PATH@GOTPAGE
Lloh11:
	ldr	x26, [x26, _ACPI_DEVICE_PATH@GOTPAGEOFF]
Lloh12:
	adrp	x27, _ACPI_DP@GOTPAGE
Lloh13:
	ldr	x27, [x27, _ACPI_DP@GOTPAGEOFF]
Lloh14:
	adrp	x28, _MESSAGING_DEVICE_PATH@GOTPAGE
Lloh15:
	ldr	x28, [x28, _MESSAGING_DEVICE_PATH@GOTPAGEOFF]
Lloh16:
	adrp	x21, _HARDWARE_DEVICE_PATH@GOTPAGE
Lloh17:
	ldr	x21, [x21, _HARDWARE_DEVICE_PATH@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_NextDevicePathNode
	mov	x19, x0
	cmp	x25, x0
	b.ls	LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_DevicePathType
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathSubType
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
	bl	_EISA_ID_TO_NUM
	cmp	w0, #1281
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_setenv_int
	mov	w20, #0
	add	w23, w23, #1
	mov	x22, x23
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathType
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathSubType
Lloh20:
	adrp	x8, _MSG_UART_DP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_UART_DP@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_setenv_int
	mov	w20, #0
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathType
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathSubType
Lloh25:
	adrp	x8, _ACPI_ADR_DP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ACPI_ADR_DP@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, #0
	add	w23, w23, #1
	mov	x24, x23
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathType
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_DevicePathSubType
Lloh28:
	adrp	x8, _HW_PCI_DP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HW_PCI_DP@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w20, eq
	b	LBB0_4
LBB0_17:
Lloh31:
	adrp	x8, _RB_SERIAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RB_SERIAL@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_18:
	mov	w23, #0
	mov	w22, #0
	mov	w24, #0
                                        ; implicit-def: $w20
LBB0_19:
	cmp	w24, #0
	ccmp	w20, #0, #4, eq
	csinc	w8, w24, w23, eq
	cbz	w8, LBB0_23
; %bb.20:
	cbz	w22, LBB0_23
; %bb.21:
Lloh34:
	adrp	x9, _RB_MULTIPLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RB_MULTIPLE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x9]
	cmp	w22, w8
	b.ge	LBB0_24
; %bb.22:
Lloh37:
	adrp	x8, _RB_SERIAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RB_SERIAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_24
LBB0_23:
Lloh40:
	adrp	x8, _RB_SERIAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RB_SERIAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w0, w8, wzr, ne
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ConOut"

	.comm	_EFI_SUCCESS,4,2                ; @EFI_SUCCESS
	.comm	_RB_SERIAL,4,2                  ; @RB_SERIAL
	.comm	_ACPI_DEVICE_PATH,8,3           ; @ACPI_DEVICE_PATH
	.comm	_ACPI_DP,8,3                    ; @ACPI_DP
l_.str.1:                               ; @.str.1
	.asciz	"efi_8250_uid"

	.comm	_MESSAGING_DEVICE_PATH,8,3      ; @MESSAGING_DEVICE_PATH
	.comm	_MSG_UART_DP,8,3                ; @MSG_UART_DP
l_.str.2:                               ; @.str.2
	.asciz	"efi_com_speed"

	.comm	_ACPI_ADR_DP,8,3                ; @ACPI_ADR_DP
	.comm	_HARDWARE_DEVICE_PATH,8,3       ; @HARDWARE_DEVICE_PATH
	.comm	_HW_PCI_DP,8,3                  ; @HW_PCI_DP
	.comm	_RB_MULTIPLE,4,2                ; @RB_MULTIPLE
.subsections_via_symbols
