	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csid_set_test_pattern
_csid_set_test_pattern:                 ## @csid_set_test_pattern
	.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	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	_MSM_CSID_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_media_entity_remote_pad
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_1:
	movl	$0, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	movl	$1, 8(%r14)
	xorl	%eax, %eax
	decl	%ebx
	cmpl	$4, %ebx
	ja	LBB0_12
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_6:
	movq	_CSID_PAYLOAD_MODE_INCREMENTING@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	movq	_CSID_PAYLOAD_MODE_ALTERNATING_55_AA@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_CSID_PAYLOAD_MODE_ALL_ZEROES@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_CSID_PAYLOAD_MODE_ALL_ONES@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_10:
	movq	_CSID_PAYLOAD_MODE_RANDOM@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_MSM_CSID_PAD_SINK,8,3          ## @MSM_CSID_PAD_SINK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CSID_PAYLOAD_MODE_INCREMENTING,4,2 ## @CSID_PAYLOAD_MODE_INCREMENTING
	.comm	_CSID_PAYLOAD_MODE_ALTERNATING_55_AA,4,2 ## @CSID_PAYLOAD_MODE_ALTERNATING_55_AA
	.comm	_CSID_PAYLOAD_MODE_ALL_ZEROES,4,2 ## @CSID_PAYLOAD_MODE_ALL_ZEROES
	.comm	_CSID_PAYLOAD_MODE_ALL_ONES,4,2 ## @CSID_PAYLOAD_MODE_ALL_ONES
	.comm	_CSID_PAYLOAD_MODE_RANDOM,4,2   ## @CSID_PAYLOAD_MODE_RANDOM
	.no_dead_strip	_csid_set_test_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csid_set_test_pattern
_csid_set_test_pattern:                 ; @csid_set_test_pattern
	.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
	mov	x19, x0
	cbz	w1, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MSM_CSID_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSM_CSID_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_media_entity_remote_pad
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_3:
	mov	w0, #0
	str	wzr, [x19, #8]
	b	LBB0_13
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #8]
	sub	w8, w20, #1
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.5:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	w0, #0
Lloh8:
	adrp	x8, _CSID_PAYLOAD_MODE_INCREMENTING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSID_PAYLOAD_MODE_INCREMENTING@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
	mov	w0, #0
Lloh10:
	adrp	x8, _CSID_PAYLOAD_MODE_ALTERNATING_55_AA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CSID_PAYLOAD_MODE_ALTERNATING_55_AA@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	w0, #0
Lloh12:
	adrp	x8, _CSID_PAYLOAD_MODE_ALL_ZEROES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSID_PAYLOAD_MODE_ALL_ZEROES@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
Lloh14:
	adrp	x8, _CSID_PAYLOAD_MODE_ALL_ONES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CSID_PAYLOAD_MODE_ALL_ONES@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
Lloh16:
	adrp	x8, _CSID_PAYLOAD_MODE_RANDOM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CSID_PAYLOAD_MODE_RANDOM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_13:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_MSM_CSID_PAD_SINK,8,3          ; @MSM_CSID_PAD_SINK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CSID_PAYLOAD_MODE_INCREMENTING,4,2 ; @CSID_PAYLOAD_MODE_INCREMENTING
	.comm	_CSID_PAYLOAD_MODE_ALTERNATING_55_AA,4,2 ; @CSID_PAYLOAD_MODE_ALTERNATING_55_AA
	.comm	_CSID_PAYLOAD_MODE_ALL_ZEROES,4,2 ; @CSID_PAYLOAD_MODE_ALL_ZEROES
	.comm	_CSID_PAYLOAD_MODE_ALL_ONES,4,2 ; @CSID_PAYLOAD_MODE_ALL_ONES
	.comm	_CSID_PAYLOAD_MODE_RANDOM,4,2   ; @CSID_PAYLOAD_MODE_RANDOM
	.no_dead_strip	_csid_set_test_pattern
.subsections_via_symbols
