	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_hdr_info_packet
_fill_hdr_info_packet:                  ## @fill_hdr_info_packet
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	cmpl	$0, 8(%r15)
	je	LBB0_11
## %bb.1:
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	callq	_drm_hdmi_infoframe_set_hdr_metadata
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	$30, %edx
	callq	_hdmi_drm_infoframe_pack_only
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	cmpl	$30, %ebx
	jne	LBB0_4
## %bb.5:
	movq	(%r15), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.8:
	movabsq	$4294967431, %rax               ## imm = 0x100000087
	movq	%rax, (%r14)
	movl	$26, 8(%r14)
	movb	-61(%rbp), %al
	movq	16(%r14), %rcx
	movb	%al, (%rcx)
	movl	$1, %edi
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	movabsq	$579820584960, %rax             ## imm = 0x8700000000
	movq	%rax, (%r14)
	movl	$29, 8(%r14)
	movl	$76, 24(%r14)
	movq	16(%r14), %rax
	movb	$1, (%rax)
	movq	16(%r14), %rax
	movb	$26, 1(%rax)
	movl	$2, %edi
LBB0_10:
	addq	16(%r14), %rdi
	leaq	-60(%rbp), %rsi
	movl	$26, %edx
	callq	_memcpy
	movl	$1, 28(%r14)
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r14), %r9
	leaq	L_.str(%rip), %rsi
	movl	$16, %ecx
	movl	$1, %r8d
	pushq	$0
	pushq	$8
	callq	_print_hex_dump
	addq	$16, %rsp
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDR SB:"

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.no_dead_strip	_fill_hdr_info_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fill_hdr_info_packet
lCPI0_0:
	.long	0                               ; 0x0
	.long	135                             ; 0x87
lCPI0_1:
	.long	135                             ; 0x87
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fill_hdr_info_packet:                  ; @fill_hdr_info_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x0, sp
	mov	x1, x20
	bl	_drm_hdmi_infoframe_set_hdr_metadata
	cbnz	w0, LBB0_12
; %bb.2:
	mov	x0, sp
	add	x1, sp, #10
	mov	w2, #30
	bl	_hdmi_drm_infoframe_pack_only
	tbnz	w0, #31, LBB0_12
; %bb.3:
	cmp	w0, #30
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, lCPI0_1@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19]
	mov	w8, #26
	str	w8, [x19, #8]
	ldrb	w8, [sp, #13]
	ldr	x9, [x19, #16]
	strb	w8, [x9]
	mov	w8, #1
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w8, #29
	str	w8, [x19, #8]
	mov	w8, #76
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	mov	w9, #1
	strb	w9, [x8]
	ldr	x8, [x19, #16]
	mov	w9, #26
	strb	w9, [x8, #1]
	mov	w8, #2
LBB0_10:
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	add	x8, sp, #10
	add	x1, x8, #4
	mov	w2, #26
	bl	_memcpy
	mov	w8, #1
Lloh10:
	adrp	x9, _KERN_DEBUG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KERN_DEBUG@GOTPAGEOFF]
	str	w8, [x19, #28]
Lloh12:
	ldr	w0, [x9]
Lloh13:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	x5, [x19, #16]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #16
	mov	w4, #1
	mov	w6, #8
	mov	w7, #0
	bl	_print_hex_dump
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDR SB:"

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.no_dead_strip	_fill_hdr_info_packet
.subsections_via_symbols
