	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vchi_service_set_option        ## -- Begin function vchi_service_set_option
	.p2align	4, 0x90
_vchi_service_set_option:               ## @vchi_service_set_option
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_find_service_by_handle
	cmpl	$128, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_VCHIQ_SERVICE_OPTION_TRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	4(%rax), %ecx
	movl	%ecx, -28(%rbp)
	movl	%r14d, -32(%rbp)
	movl	(%rax), %edi
	movq	_VCHIQ_IOC_SET_SERVICE_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_ioctl
	movl	%eax, %esi
	callq	_RETRY
                                        ## implicit-def: $eax
	jmp	LBB0_4
LBB0_2:
	movq	_VCHIQ_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCHIQ_SERVICE_OPTION_TRACE,4,2 ## @VCHIQ_SERVICE_OPTION_TRACE
	.comm	_VCHIQ_ERROR,4,2                ## @VCHIQ_ERROR
	.comm	_VCHIQ_IOC_SET_SERVICE_OPTION,4,2 ## @VCHIQ_IOC_SET_SERVICE_OPTION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vchi_service_set_option        ; -- Begin function vchi_service_set_option
	.p2align	2
_vchi_service_set_option:               ; @vchi_service_set_option
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_find_service_by_handle
	cmp	w20, #128
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _VCHIQ_SERVICE_OPTION_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCHIQ_SERVICE_OPTION_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w0, w8, [x0]
	stp	w19, w8, [sp]
Lloh3:
	adrp	x8, _VCHIQ_IOC_SET_SERVICE_OPTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCHIQ_IOC_SET_SERVICE_OPTION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	mov	x1, x0
	bl	_RETRY
                                        ; implicit-def: $w0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _VCHIQ_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VCHIQ_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VCHIQ_SERVICE_OPTION_TRACE,4,2 ; @VCHIQ_SERVICE_OPTION_TRACE
	.comm	_VCHIQ_ERROR,4,2                ; @VCHIQ_ERROR
	.comm	_VCHIQ_IOC_SET_SERVICE_OPTION,4,2 ; @VCHIQ_IOC_SET_SERVICE_OPTION
.subsections_via_symbols
