	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpbios_encode_mem
_pnpbios_encode_mem:                    ## @pnpbios_encode_mem
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_pnp_resource_enabled
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r12), %r15
	movq	%r12, %rdi
	callq	_resource_size
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
LBB0_3:
	movq	%r15, %rcx
	shrq	$8, %rcx
	movb	%cl, 4(%rbx)
	movq	%r15, %rdx
	shrq	$16, %rdx
	movb	%dl, 5(%rbx)
	movb	%cl, 6(%rbx)
	movb	%dl, 7(%rbx)
	movb	%ah, 10(%rbx)
	leaq	(%r15,%rax), %rcx
	decq	%rcx
	shrq	$16, %rax
	movb	%al, 11(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pnp_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  encode mem %#lx-%#lx\n"

	.no_dead_strip	_pnpbios_encode_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpbios_encode_mem
_pnpbios_encode_mem:                    ; @pnpbios_encode_mem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_pnp_resource_enabled
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x21, [x22]
	mov	x0, x22
	bl	_resource_size
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	lsr	x8, x21, #8
	strb	w8, [x20, #4]
	lsr	x9, x21, #16
	strb	w9, [x20, #5]
	strb	w8, [x20, #6]
	strb	w9, [x20, #7]
	lsr	x8, x0, #8
	lsr	x9, x0, #16
	add	x10, x21, x0
	sub	x3, x10, #1
	strb	w8, [x20, #10]
	strb	w9, [x20, #11]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pnp_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  encode mem %#lx-%#lx\n"

	.no_dead_strip	_pnpbios_encode_mem
.subsections_via_symbols
