	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_clock_setup
_mmal_port_clock_setup:                 ## @mmal_port_clock_setup
	.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
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	%esi, %edi
	addq	48(%rax), %rdi
	movq	%rdi, 40(%rax)
	callq	_mmal_clock_create
	movq	%rax, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	movq	40(%rax), %rax
	movq	(%rax), %rcx
	movq	%rbx, (%rcx)
	movabsq	$17179869188, %rcx              ## imm = 0x400000004
	movq	%rcx, (%rbx)
	movq	_MMAL_PORT_CLOCK_BUFFERS_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rbx)
	movq	%rcx, 24(%rbx)
	movl	%r15d, 12(%rax)
	xorl	%eax, %eax
	callq	_mmal_queue_create
	movq	16(%rbx), %rcx
	movq	40(%rcx), %rdx
	movl	%eax, 8(%rdx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_mmal_port_clock_set_format@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rcx)
	movq	_mmal_port_clock_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rcx)
	movq	_mmal_port_clock_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movq	_mmal_port_clock_send@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	_mmal_port_clock_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	_mmal_port_clock_parameter_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_mmal_port_clock_parameter_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_mmal_port_clock_connect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	jmp	LBB0_5
LBB0_1:
	movl	40(%rbx), %ebx
	movq	%r14, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_LOG_ERROR
	jmp	LBB0_5
LBB0_3:
	movq	(%rdx), %rdi
	callq	_mmal_clock_destroy
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create clock module on port %s (%s)"

	.comm	_MMAL_PORT_CLOCK_BUFFERS_MIN,8,3 ## @MMAL_PORT_CLOCK_BUFFERS_MIN
	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
	.comm	_mmal_port_clock_set_format,4,2 ## @mmal_port_clock_set_format
	.comm	_mmal_port_clock_enable,4,2     ## @mmal_port_clock_enable
	.comm	_mmal_port_clock_disable,4,2    ## @mmal_port_clock_disable
	.comm	_mmal_port_clock_send,4,2       ## @mmal_port_clock_send
	.comm	_mmal_port_clock_flush,4,2      ## @mmal_port_clock_flush
	.comm	_mmal_port_clock_parameter_set,4,2 ## @mmal_port_clock_parameter_set
	.comm	_mmal_port_clock_parameter_get,4,2 ## @mmal_port_clock_parameter_get
	.comm	_mmal_port_clock_connect,4,2    ## @mmal_port_clock_connect
	.comm	_MMAL_PORT_CAPABILITY_ALLOCATION,4,2 ## @MMAL_PORT_CAPABILITY_ALLOCATION
	.comm	_mmal_port_clock_payload_alloc,4,2 ## @mmal_port_clock_payload_alloc
	.comm	_mmal_port_clock_payload_free,4,2 ## @mmal_port_clock_payload_free
	.no_dead_strip	_mmal_port_clock_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_clock_setup
_mmal_port_clock_setup:                 ; @mmal_port_clock_setup
	.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	x21, x2
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #48]
	add	x0, x9, w1, uxtw
	str	x0, [x8, #40]
	bl	_mmal_clock_create
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #40]
	ldr	x9, [x8]
	str	x20, [x9]
	movi.2s	v0, #4
	str	d0, [x20]
Lloh3:
	adrp	x9, _MMAL_PORT_CLOCK_BUFFERS_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMAL_PORT_CLOCK_BUFFERS_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x9, x9, [x20, #24]
	str	w21, [x8, #12]
	bl	_mmal_queue_create
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #40]
	str	w0, [x9, #8]
	cbz	w0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _mmal_port_clock_set_format@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mmal_port_clock_set_format@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _mmal_port_clock_enable@GOTPAGE
Lloh10:
	ldr	x10, [x10, _mmal_port_clock_enable@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #32]
Lloh12:
	adrp	x9, _mmal_port_clock_disable@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mmal_port_clock_disable@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _mmal_port_clock_send@GOTPAGE
Lloh16:
	ldr	x10, [x10, _mmal_port_clock_send@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #24]
Lloh18:
	adrp	x9, _mmal_port_clock_flush@GOTPAGE
Lloh19:
	ldr	x9, [x9, _mmal_port_clock_flush@GOTPAGEOFF]
Lloh20:
	adrp	x10, _mmal_port_clock_parameter_set@GOTPAGE
Lloh21:
	ldr	x10, [x10, _mmal_port_clock_parameter_set@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
Lloh24:
	adrp	x9, _mmal_port_clock_parameter_get@GOTPAGE
Lloh25:
	ldr	x9, [x9, _mmal_port_clock_parameter_get@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _mmal_port_clock_connect@GOTPAGE
Lloh28:
	ldr	x10, [x10, _mmal_port_clock_connect@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
	b	LBB0_5
LBB0_3:
	ldr	w20, [x20, #40]
	mov	x0, x19
	bl	_mmal_status_to_string
	mov	x2, x0
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_LOG_ERROR
	b	LBB0_5
LBB0_4:
	ldr	x0, [x9]
	bl	_mmal_clock_destroy
Lloh32:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	x19, [x8]
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create clock module on port %s (%s)"

	.comm	_MMAL_PORT_CLOCK_BUFFERS_MIN,8,3 ; @MMAL_PORT_CLOCK_BUFFERS_MIN
	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
	.comm	_mmal_port_clock_set_format,4,2 ; @mmal_port_clock_set_format
	.comm	_mmal_port_clock_enable,4,2     ; @mmal_port_clock_enable
	.comm	_mmal_port_clock_disable,4,2    ; @mmal_port_clock_disable
	.comm	_mmal_port_clock_send,4,2       ; @mmal_port_clock_send
	.comm	_mmal_port_clock_flush,4,2      ; @mmal_port_clock_flush
	.comm	_mmal_port_clock_parameter_set,4,2 ; @mmal_port_clock_parameter_set
	.comm	_mmal_port_clock_parameter_get,4,2 ; @mmal_port_clock_parameter_get
	.comm	_mmal_port_clock_connect,4,2    ; @mmal_port_clock_connect
	.comm	_MMAL_PORT_CAPABILITY_ALLOCATION,4,2 ; @MMAL_PORT_CAPABILITY_ALLOCATION
	.comm	_mmal_port_clock_payload_alloc,4,2 ; @mmal_port_clock_payload_alloc
	.comm	_mmal_port_clock_payload_free,4,2 ; @mmal_port_clock_payload_free
	.no_dead_strip	_mmal_port_clock_setup
.subsections_via_symbols
