	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_intf_refclk_set         ## -- Begin function gb_svc_intf_refclk_set
	.p2align	4, 0x90
_gb_svc_intf_refclk_set:                ## @gb_svc_intf_refclk_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%esi, -8(%rbp)
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_GB_SVC_TYPE_INTF_REFCLK_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GB_SVC_TYPE_INTF_REFCLK_ENABLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	(%rdi), %edi
	leaq	-8(%rbp), %rdx
	leaq	-16(%rbp), %r8
	movl	$4, %ecx
	movl	$8, %r9d
	callq	_gb_operation_sync
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	-16(%rbp), %rcx
	movq	_GB_SVC_INTF_REFCLK_OK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.5:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SVC_TYPE_INTF_REFCLK_ENABLE,4,2 ## @GB_SVC_TYPE_INTF_REFCLK_ENABLE
	.comm	_GB_SVC_TYPE_INTF_REFCLK_DISABLE,4,2 ## @GB_SVC_TYPE_INTF_REFCLK_DISABLE
	.comm	_GB_SVC_INTF_REFCLK_OK,8,3      ## @GB_SVC_INTF_REFCLK_OK
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_intf_refclk_set         ; -- Begin function gb_svc_intf_refclk_set
	.p2align	2
_gb_svc_intf_refclk_set:                ; @gb_svc_intf_refclk_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	str	w1, [sp, #8]
Lloh0:
	adrp	x8, _GB_SVC_TYPE_INTF_REFCLK_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SVC_TYPE_INTF_REFCLK_DISABLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GB_SVC_TYPE_INTF_REFCLK_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GB_SVC_TYPE_INTF_REFCLK_ENABLE@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	ldr	w0, [x0]
	add	x2, sp, #8
	mov	x4, sp
	mov	w3, #4
	mov	w5, #8
	bl	_gb_operation_sync
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [sp]
Lloh4:
	adrp	x9, _GB_SVC_INTF_REFCLK_OK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GB_SVC_INTF_REFCLK_OK@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SVC_TYPE_INTF_REFCLK_ENABLE,4,2 ; @GB_SVC_TYPE_INTF_REFCLK_ENABLE
	.comm	_GB_SVC_TYPE_INTF_REFCLK_DISABLE,4,2 ; @GB_SVC_TYPE_INTF_REFCLK_DISABLE
	.comm	_GB_SVC_INTF_REFCLK_OK,8,3      ; @GB_SVC_INTF_REFCLK_OK
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
.subsections_via_symbols
