	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_receiver_id_list_size
_get_receiver_id_list_size:             ## @get_receiver_id_list_size
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_HDCP_2_2_RXINFO_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_DP_HDCP_2_2_REG_RXINFO_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_drm_dp_dpcd_read
	cmpl	(%r12), %eax
	jne	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	callq	_HDCP_2_2_DEV_COUNT_HI
	movl	%eax, %ebx
	shll	$4, %ebx
	movl	4(%r15), %edi
	callq	_HDCP_2_2_DEV_COUNT_LO
	orl	%ebx, %eax
	movq	_HDCP_2_2_MAX_DEVICE_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movq	_HDCP_2_2_RECEIVER_ID_LEN@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	_HDCP_2_2_RECEIVER_IDS_MAX_LEN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	addl	$4, %eax
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	testl	%ecx, %ecx
	cmovsl	%ecx, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCP_2_2_RXINFO_LEN,4,2        ## @HDCP_2_2_RXINFO_LEN
	.comm	_DP_HDCP_2_2_REG_RXINFO_OFFSET,4,2 ## @DP_HDCP_2_2_REG_RXINFO_OFFSET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_HDCP_2_2_MAX_DEVICE_COUNT,4,2  ## @HDCP_2_2_MAX_DEVICE_COUNT
	.comm	_HDCP_2_2_RECEIVER_IDS_MAX_LEN,4,2 ## @HDCP_2_2_RECEIVER_IDS_MAX_LEN
	.comm	_HDCP_2_2_RECEIVER_ID_LEN,4,2   ## @HDCP_2_2_RECEIVER_ID_LEN
	.no_dead_strip	_get_receiver_id_list_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_receiver_id_list_size
_get_receiver_id_list_size:             ; @get_receiver_id_list_size
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _HDCP_2_2_RXINFO_LEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HDCP_2_2_RXINFO_LEN@GOTPAGEOFF]
	ldr	w3, [x20]
	lsl	x8, x3, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x8, _DP_HDCP_2_2_REG_RXINFO_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DP_HDCP_2_2_REG_RXINFO_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_drm_dp_dpcd_read
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_HDCP_2_2_DEV_COUNT_HI
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_HDCP_2_2_DEV_COUNT_LO
	orr	w8, w0, w20, lsl #4
Lloh10:
	adrp	x9, _HDCP_2_2_MAX_DEVICE_COUNT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HDCP_2_2_MAX_DEVICE_COUNT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
Lloh13:
	adrp	x9, _HDCP_2_2_RECEIVER_IDS_MAX_LEN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HDCP_2_2_RECEIVER_IDS_MAX_LEN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _HDCP_2_2_RECEIVER_ID_LEN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _HDCP_2_2_RECEIVER_ID_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	neg	w9, w9
	madd	w8, w10, w8, w9
	add	w0, w8, #4
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, lt
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCP_2_2_RXINFO_LEN,4,2        ; @HDCP_2_2_RXINFO_LEN
	.comm	_DP_HDCP_2_2_REG_RXINFO_OFFSET,4,2 ; @DP_HDCP_2_2_REG_RXINFO_OFFSET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_HDCP_2_2_MAX_DEVICE_COUNT,4,2  ; @HDCP_2_2_MAX_DEVICE_COUNT
	.comm	_HDCP_2_2_RECEIVER_IDS_MAX_LEN,4,2 ; @HDCP_2_2_RECEIVER_IDS_MAX_LEN
	.comm	_HDCP_2_2_RECEIVER_ID_LEN,4,2   ; @HDCP_2_2_RECEIVER_ID_LEN
	.no_dead_strip	_get_receiver_id_list_size
.subsections_via_symbols
