	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_buffer_header_callback ## -- Begin function mmal_port_buffer_header_callback
	.p2align	4, 0x90
_mmal_port_buffer_header_callback:      ## @mmal_port_buffer_header_callback
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IN_TRANSIT_COUNT
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_vcos_verify
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_IN_TRANSIT_COUNT
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_LOG_ERROR
LBB0_2:
	movq	_MMAL_COLLECT_PORT_STATS_ENABLED@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_MMAL_CORE_STATS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmal_port_update_port_stats
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IN_TRANSIT_DECREMENT           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: buffer headers in transit < 0 (%d)"

	.comm	_MMAL_COLLECT_PORT_STATS_ENABLED,8,3 ## @MMAL_COLLECT_PORT_STATS_ENABLED
	.comm	_MMAL_CORE_STATS_TX,4,2         ## @MMAL_CORE_STATS_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_buffer_header_callback ; -- Begin function mmal_port_buffer_header_callback
	.p2align	2
_mmal_port_buffer_header_callback:      ; @mmal_port_buffer_header_callback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_IN_TRANSIT_COUNT
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_vcos_verify
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w21, [x19, #8]
	mov	x0, x19
	bl	_IN_TRANSIT_COUNT
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_LOG_ERROR
LBB0_2:
Lloh2:
	adrp	x8, _MMAL_COLLECT_PORT_STATS_ENABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_COLLECT_PORT_STATS_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _MMAL_CORE_STATS_TX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_CORE_STATS_TX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmal_port_update_port_stats
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IN_TRANSIT_DECREMENT
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: buffer headers in transit < 0 (%d)"

	.comm	_MMAL_COLLECT_PORT_STATS_ENABLED,8,3 ; @MMAL_COLLECT_PORT_STATS_ENABLED
	.comm	_MMAL_CORE_STATS_TX,4,2         ; @MMAL_CORE_STATS_TX
.subsections_via_symbols
