	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcio_ioctl                     ## -- Begin function vcio_ioctl
	.p2align	4, 0x90
_vcio_ioctl:                            ## @vcio_ioctl
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.1:
	leaq	-40(%rbp), %rdi
	movl	%edx, %esi
	movl	$8, %edx
	callq	_memcpy
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	movl	$4, %edx
	callq	_copyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	-28(%rbp), %edi
	movq	_M_VCIO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r14
	movq	-40(%rbp), %rdi
	movl	-28(%rbp), %edx
	movq	%rax, %rsi
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_bcm2835_mbox_property
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	-40(%rbp), %rsi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_copyout
LBB0_3:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VCIO,4,2                     ## @M_VCIO
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcio_ioctl                     ; -- Begin function vcio_ioctl
	.p2align	2
_vcio_ioctl:                            ; @vcio_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.1:
	add	x0, sp, #8
	mov	x1, x2
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	mov	w2, #4
	bl	_copyin
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w0, [sp, #4]
Lloh0:
	adrp	x21, _M_VCIO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_VCIO@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_malloc
	mov	x20, x0
	ldr	x0, [sp, #8]
	ldr	w2, [sp, #4]
	mov	x1, x20
	bl	_copyin
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w1, [sp, #4]
	mov	x0, x20
	bl	_bcm2835_mbox_property
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x1, [sp, #8]
	ldr	w2, [sp, #4]
	mov	x0, x20
	bl	_copyout
LBB0_5:
	mov	x19, x0
	ldr	w1, [x21]
	mov	x0, x20
	bl	_free
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VCIO,4,2                     ; @M_VCIO
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
