	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_enable_internal
_mmal_port_enable_internal:             ## @mmal_port_enable_internal
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movq	8(%rax), %r13
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	callq	_LOCK_PORT
	cmpl	$0, (%rbx)
	jne	LBB0_8
## %bb.1:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_8:
	movq	%rbx, %rdi
	callq	_UNLOCK_PORT
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r15d, (%r13)
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*(%rax)
	movq	%rax, %r14
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_LOCK_SENDING
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_UNLOCK_SENDING
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer_num too small (%i/%i)"

	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"buffer_size too small (%i/%i)"

	.no_dead_strip	_mmal_port_enable_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_enable_internal
_mmal_port_enable_internal:             ; @mmal_port_enable_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	x23, [x8, #8]
Lloh0:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x20, [x22]
	bl	_LOCK_PORT
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.1:
	ldp	x1, x2, [x19, #8]
	cmp	x1, x2
	b.ge	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldp	x1, x2, [x19, #24]
	cmp	x1, x2
	b.ge	LBB0_7
; %bb.4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_LOG_ERROR
Lloh6:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
LBB0_6:
	mov	x0, x19
	bl	_UNLOCK_PORT
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	w21, [x23]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x20, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.8:
	mov	x0, x19
	bl	_LOCK_SENDING
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_UNLOCK_SENDING
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer_num too small (%i/%i)"

	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"buffer_size too small (%i/%i)"

	.no_dead_strip	_mmal_port_enable_internal
.subsections_via_symbols
