	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vchiq_set_service_option       ## -- Begin function vchiq_set_service_option
	.p2align	4, 0x90
_vchiq_set_service_option:              ## @vchiq_set_service_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
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %ecx
	movl	%ecx, -24(%rbp)
	movl	%ebx, -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
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VCHIQ_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCHIQ_ERROR,4,2                ## @VCHIQ_ERROR
	.comm	_VCHIQ_IOC_SET_SERVICE_OPTION,4,2 ## @VCHIQ_IOC_SET_SERVICE_OPTION
	.comm	_VCHIQ_SUCCESS,4,2              ## @VCHIQ_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vchiq_set_service_option       ; -- Begin function vchiq_set_service_option
	.p2align	2
_vchiq_set_service_option:              ; @vchiq_set_service_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
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w0, w8, [x0]
	stp	w20, w8, [sp, #4]
	str	w19, [sp]
Lloh0:
	adrp	x8, _VCHIQ_IOC_SET_SERVICE_OPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCHIQ_IOC_SET_SERVICE_OPTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	mov	x1, x0
	bl	_RETRY
Lloh3:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _VCHIQ_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCHIQ_ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VCHIQ_ERROR,4,2                ; @VCHIQ_ERROR
	.comm	_VCHIQ_IOC_SET_SERVICE_OPTION,4,2 ; @VCHIQ_IOC_SET_SERVICE_OPTION
	.comm	_VCHIQ_SUCCESS,4,2              ; @VCHIQ_SUCCESS
.subsections_via_symbols
