	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_get_rid
_prism2_ioctl_get_rid:                  ## @prism2_ioctl_get_rid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PRISM2_HOSTAPD_RID_HDR_LEN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %r14
	movq	8(%rdi), %rax
	movl	(%rdi), %edi
	movl	8(%rsi), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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_get_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_get_rid
_prism2_ioctl_get_rid:                  ; @prism2_ioctl_get_rid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PRISM2_HOSTAPD_RID_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRISM2_HOSTAPD_RID_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x19, x1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w0, [x0]
	ldr	w1, [x1, #8]
	ldp	w3, w2, [x19]
	mov	w4, #0
	blr	x8
	tbnz	w0, #31, LBB0_4
; %bb.3:
	str	w0, [x19]
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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_get_rid
.subsections_via_symbols
