	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_send_pkt_payld
_dsi_send_pkt_payld:                    ## @dsi_send_pkt_payld
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rdx
	movq	_MAX_PLOAD_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	cmpl	%edx, %eax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	%rdx, %rsi
	shrq	$32, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_add_payld_to_queue
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.5:
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_DRM_ERROR
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PLOAD_CREDIT,4,2           ## @MAX_PLOAD_CREDIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"payload size exceeds max queue limit\n"

L_.str.1:                               ## @.str.1
	.asciz	"adding payload to queue failed\n"

	.no_dead_strip	_dsi_send_pkt_payld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_send_pkt_payld
_dsi_send_pkt_payld:                    ; @dsi_send_pkt_payld
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
Lloh0:
	adrp	x8, _MAX_PLOAD_CREDIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PLOAD_CREDIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, w8, lsl #2
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	lsr	x1, x2, #32
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_add_payld_to_queue
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_ERROR
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PLOAD_CREDIT,4,2           ; @MAX_PLOAD_CREDIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"payload size exceeds max queue limit\n"

l_.str.1:                               ; @.str.1
	.asciz	"adding payload to queue failed\n"

	.no_dead_strip	_dsi_send_pkt_payld
.subsections_via_symbols
