	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkt_sys_set_resource           ## -- Begin function pkt_sys_set_resource
	.p2align	4, 0x90
_pkt_sys_set_resource:                  ## @pkt_sys_set_resource
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$32, (%rdi)
	movq	_HFI_CMD_SYS_SET_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	%r8, %rdi
	callq	_hash32_ptr
	movl	%eax, 24(%rbx)
	andl	$-2, %r12d
	cmpl	$128, %r12d
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movl	%r15d, (%rax)
	movl	%r14d, 4(%rax)
	movq	_HFI_RESOURCE_OCMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	addl	$4, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI_CMD_SYS_SET_RESOURCE,4,2   ## @HFI_CMD_SYS_SET_RESOURCE
	.comm	_HFI_RESOURCE_OCMEM,4,2         ## @HFI_RESOURCE_OCMEM
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkt_sys_set_resource           ; -- Begin function pkt_sys_set_resource
	.p2align	2
_pkt_sys_set_resource:                  ; @pkt_sys_set_resource
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w8, #32
	str	w8, [x0]
Lloh0:
	adrp	x8, _HFI_CMD_SYS_SET_RESOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI_CMD_SYS_SET_RESOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	mov	x0, x4
	bl	_hash32_ptr
	str	w0, [x19, #24]
	and	w8, w22, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _HFI_RESOURCE_OCMEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HFI_RESOURCE_OCMEM@GOTPAGEOFF]
	stp	w21, w20, [x8]
Lloh5:
	ldr	w8, [x9]
	str	w8, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #4
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI_CMD_SYS_SET_RESOURCE,4,2   ; @HFI_CMD_SYS_SET_RESOURCE
	.comm	_HFI_RESOURCE_OCMEM,4,2         ; @HFI_RESOURCE_OCMEM
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
.subsections_via_symbols
