	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lpc_device_parse               ## -- Begin function lpc_device_parse
	.p2align	4, 0x90
_lpc_device_parse:                      ## @lpc_device_parse
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_strdup
	movq	%rax, %r14
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_LPC_UART_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.3:
	movq	_lpc_uart_names@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_7:
	movq	-48(%rbp), %rax
	movq	_romfile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rax
	movq	_lpc_uart_softc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	","

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

	.comm	_romfile,8,3                    ## @romfile
	.comm	_LPC_UART_NUM,4,2               ## @LPC_UART_NUM
	.comm	_lpc_uart_names,8,3             ## @lpc_uart_names
	.comm	_lpc_uart_softc,8,3             ## @lpc_uart_softc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lpc_device_parse               ; -- Begin function lpc_device_parse
	.p2align	2
_lpc_device_parse:                      ; @lpc_device_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_strdup
	mov	x19, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_7
; %bb.2:
Lloh4:
	adrp	x8, _LPC_UART_NUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LPC_UART_NUM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x21, #0
Lloh7:
	adrp	x9, _lpc_uart_names@GOTPAGE
Lloh8:
	ldr	x9, [x9, _lpc_uart_names@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x9]
	lsl	x23, x8, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21]
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #8
	cmp	x23, x21
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _romfile@GOTPAGE
Lloh11:
	ldr	x9, [x9, _romfile@GOTPAGEOFF]
Lloh12:
	str	x8, [x9]
	b	LBB0_9
LBB0_8:
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x9, _lpc_uart_softc@GOTPAGE
Lloh14:
	ldr	x9, [x9, _lpc_uart_softc@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	x8, [x9, x21]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

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

	.comm	_romfile,8,3                    ; @romfile
	.comm	_LPC_UART_NUM,4,2               ; @LPC_UART_NUM
	.comm	_lpc_uart_names,8,3             ; @lpc_uart_names
	.comm	_lpc_uart_softc,8,3             ; @lpc_uart_softc
.subsections_via_symbols
