	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_port_send
_sdl_port_send:                         ## @sdl_port_send
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	callq	_LOG_ERROR
	movq	$0, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rcx), %edi
	movq	%r14, %rsi
	callq	_mmal_queue_put
	movq	(%rbx), %rax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"discarding event %i on port %p"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.no_dead_strip	_sdl_port_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_port_send
_sdl_port_send:                         ; @sdl_port_send
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	ldr	x1, [x1, #8]
	cbz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_LOG_ERROR
	str	xzr, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_mmal_port_buffer_header_callback
Lloh2:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x0, [x8]
Lloh5:
	adrp	x20, _MMAL_SUCCESS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x0, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_mmal_queue_put
	ldr	x0, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"discarding event %i on port %p"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.no_dead_strip	_sdl_port_send
.subsections_via_symbols
