	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sp_populate
_sp_populate:                           ## @sp_populate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 16(%rdi)
	movl	8(%rsi), %eax
	movl	%eax, 12(%rdi)
	movl	4(%rsi), %eax
	movl	%eax, 8(%rdi)
	movq	_IORESOURCE_MEM_TYPE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rdx
	cmpq	$129, %rdx
	je	LBB0_1
## %bb.2:
	cmpq	$130, %rdx
	jne	LBB0_4
## %bb.3:
	movq	_sp_write_reg16@GOTPCREL(%rip), %rax
	movq	_sp_read_reg16@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_sp_write_reg32@GOTPCREL(%rip), %rax
	movq	_sp_read_reg32@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_sp_write_reg8@GOTPCREL(%rip), %rax
	movq	_sp_read_reg8@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdi)
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM_TYPE_MASK,8,3   ## @IORESOURCE_MEM_TYPE_MASK
	.comm	_sp_read_reg32,4,2              ## @sp_read_reg32
	.comm	_sp_write_reg32,4,2             ## @sp_write_reg32
	.comm	_sp_read_reg16,4,2              ## @sp_read_reg16
	.comm	_sp_write_reg16,4,2             ## @sp_write_reg16
	.comm	_sp_read_reg8,4,2               ## @sp_read_reg8
	.comm	_sp_write_reg8,4,2              ## @sp_write_reg8
	.no_dead_strip	_sp_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sp_populate
_sp_populate:                           ; @sp_populate
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x0, #16]
	ldur	d0, [x1, #4]
	str	d0, [x0, #8]
Lloh0:
	adrp	x8, _IORESOURCE_MEM_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x8, x8, x2
Lloh3:
	adrp	x9, _sp_write_reg32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sp_write_reg32@GOTPAGEOFF]
Lloh5:
	adrp	x10, _sp_read_reg32@GOTPAGE
Lloh6:
	ldr	x10, [x10, _sp_read_reg32@GOTPAGEOFF]
Lloh7:
	adrp	x11, _sp_write_reg8@GOTPAGE
Lloh8:
	ldr	x11, [x11, _sp_write_reg8@GOTPAGEOFF]
Lloh9:
	adrp	x12, _sp_read_reg8@GOTPAGE
Lloh10:
	ldr	x12, [x12, _sp_read_reg8@GOTPAGEOFF]
Lloh11:
	adrp	x13, _sp_write_reg16@GOTPAGE
Lloh12:
	ldr	x13, [x13, _sp_write_reg16@GOTPAGEOFF]
Lloh13:
	adrp	x14, _sp_read_reg16@GOTPAGE
Lloh14:
	ldr	x14, [x14, _sp_read_reg16@GOTPAGEOFF]
	cmp	x8, #130
	csel	x12, x12, x14, ne
	csel	x11, x11, x13, ne
	cmp	x8, #129
	csel	x8, x10, x12, eq
	csel	x9, x9, x11, eq
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM_TYPE_MASK,8,3   ; @IORESOURCE_MEM_TYPE_MASK
	.comm	_sp_read_reg32,4,2              ; @sp_read_reg32
	.comm	_sp_write_reg32,4,2             ; @sp_write_reg32
	.comm	_sp_read_reg16,4,2              ; @sp_read_reg16
	.comm	_sp_write_reg16,4,2             ; @sp_write_reg16
	.comm	_sp_read_reg8,4,2               ; @sp_read_reg8
	.comm	_sp_write_reg8,4,2              ; @sp_write_reg8
	.no_dead_strip	_sp_populate
.subsections_via_symbols
