	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpbios_parse_compatible_ids
_pnpbios_parse_compatible_ids:          ## @pnpbios_parse_compatible_ids
	.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
	subq	$40, %rsp
	.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)
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	cmpq	%rsi, %rdi
	jae	LBB0_13
## %bb.2:
	leaq	8(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_LARGE_TAG@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	leaq	3(%rbx), %rsi
	movq	_PNP_NAME_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	-2(%rax), %edx
	cmpl	%eax, %r14d
	cmovll	%r14d, %edx
	callq	_strncpy
	movq	(%r15), %rax
	movl	(%r13), %ecx
	leal	-1(%rcx), %edx
	cmpl	%ecx, %r14d
	cmovll	%r14d, %edx
	movslq	%edx, %rcx
	movb	$0, (%rax,%rcx)
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_LARGE_TAG@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	xorl	%ecx, %ecx
	testb	%al, (%rbx)
	setne	%cl
	leal	(%r14,%rcx,2), %ecx
	incl	%ecx
	addq	%rcx, %rbx
	cmpq	%r12, %rbx
	jae	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edx
	testb	%dl, %al
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzwl	1(%rbx), %r14d
	cmpb	$-127, %dl
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$-126, %dl
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$-128, %dl
	jne	LBB0_12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %r14d
	andl	$7, %r14d
	shrl	$3, %edx
	andl	$15, %edx
	cmpb	$-127, %dl
	jne	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$4, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	1(%rbx), %edi
	movq	_PNP_EISA_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	leaq	-56(%rbp), %r13
	movq	%r13, %rsi
	callq	_pnp_eisa_id_to_string
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	callq	_pnp_add_id
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_13:
	addq	$8, %r15
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.16:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	addq	$2, %rbx
	jmp	LBB0_15
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LARGE_TAG,1,0                  ## @LARGE_TAG
	.comm	_PNP_NAME_LEN,4,2               ## @PNP_NAME_LEN
	.comm	_PNP_EISA_ID_MASK,4,2           ## @PNP_EISA_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown tag %#x length %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"no end tag in resource structure\n"

	.no_dead_strip	_pnpbios_parse_compatible_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpbios_parse_compatible_ids
_pnpbios_parse_compatible_ids:          ; @pnpbios_parse_compatible_ids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	x0, x1
	b.hs	LBB0_13
; %bb.2:
	add	x22, x19, #8
Lloh3:
	adrp	x24, _LARGE_TAG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LARGE_TAG@GOTPAGEOFF]
	ldrb	w9, [x24]
Lloh5:
	adrp	x25, _PNP_EISA_ID_MASK@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PNP_EISA_ID_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
Lloh9:
	adrp	x26, _PNP_NAME_LEN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PNP_NAME_LEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	add	x1, x20, #3
	ldr	w8, [x26]
	sub	w9, w8, #2
	cmp	w27, w8
	csel	w2, w27, w9, lt
	bl	_strncpy
	ldr	x8, [x19]
	ldr	w9, [x26]
	sub	w10, w9, #1
	cmp	w27, w9
	csel	w9, w27, w10, lt
	strb	wzr, [x8, w9, sxtw]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20]
	ldrb	w9, [x24]
	tst	w9, w8
	add	w8, w27, #3
	csinc	w8, w8, w27, ne
	add	x20, x20, x8
	cmp	x20, x21
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldurh	w27, [x20, #1]
	cmp	w8, #129
	b.eq	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #128
	b.ne	LBB0_12
	b	LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w27, w8, #0x7
	ubfx	w8, w8, #3, #4
	cmp	w8, #129
	b.ne	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #4
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x20, #1]
	ldr	w9, [x25]
	and	w0, w8, w9
	add	x1, sp, #16
	bl	_pnp_eisa_id_to_string
	add	x1, sp, #16
	mov	x0, x19
	bl	_pnp_add_id
	cbnz	x0, LBB0_4
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x8, x27, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_dev_err
	b	LBB0_4
LBB0_13:
	add	x0, x19, #8
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, #0
LBB0_14:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	add	x0, x20, #2
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LARGE_TAG,1,0                  ; @LARGE_TAG
	.comm	_PNP_NAME_LEN,4,2               ; @PNP_NAME_LEN
	.comm	_PNP_EISA_ID_MASK,4,2           ; @PNP_EISA_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown tag %#x length %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"no end tag in resource structure\n"

	.no_dead_strip	_pnpbios_parse_compatible_ids
.subsections_via_symbols
