	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_set_rid
_prism2_ioctl_set_rid:                  ## @prism2_ioctl_set_rid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PRISM2_HOSTAPD_RID_HDR_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	js	LBB0_2
## %bb.1:
	movl	(%rsi), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rdi), %edi
	movl	4(%rsi), %edx
	movl	8(%rsi), %esi
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRISM2_HOSTAPD_RID_HDR_LEN,4,2 ## @PRISM2_HOSTAPD_RID_HDR_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_prism2_ioctl_set_rid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_set_rid
_prism2_ioctl_set_rid:                  ; @prism2_ioctl_set_rid
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PRISM2_HOSTAPD_RID_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRISM2_HOSTAPD_RID_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w8, w2, w8
	b.mi	LBB0_2
; %bb.1:
	ldr	w3, [x1]
	cmp	w8, w3
	b.ge	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	ldr	x8, [x0, #8]
	ldr	x4, [x8]
	ldr	w0, [x0]
	ldp	w2, w8, [x1, #4]
	mov	x1, x8
	br	x4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PRISM2_HOSTAPD_RID_HDR_LEN,4,2 ; @PRISM2_HOSTAPD_RID_HDR_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_prism2_ioctl_set_rid
.subsections_via_symbols
