	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vga_switcheroo_register_audio_client ## -- Begin function vga_switcheroo_register_audio_client
	.p2align	4, 0x90
_vga_switcheroo_register_audio_client:  ## @vga_switcheroo_register_audio_client
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_VGA_SWITCHEROO_UNKNOWN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_vgasr_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_vgasr_priv@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*%rcx
LBB0_3:
	movq	_vgasr_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ID_BIT_AUDIO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_client                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_SWITCHEROO_UNKNOWN_ID,4,2  ## @VGA_SWITCHEROO_UNKNOWN_ID
	.comm	_vgasr_mutex,4,2                ## @vgasr_mutex
	.comm	_vgasr_priv,16,3                ## @vgasr_priv
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ID_BIT_AUDIO,4,2               ## @ID_BIT_AUDIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vga_switcheroo_register_audio_client ; -- Begin function vga_switcheroo_register_audio_client
	.p2align	2
_vga_switcheroo_register_audio_client:  ; @vga_switcheroo_register_audio_client
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _VGA_SWITCHEROO_UNKNOWN_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGA_SWITCHEROO_UNKNOWN_ID@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x0, _vgasr_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _vgasr_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh5:
	adrp	x8, _vgasr_priv@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vgasr_priv@GOTPAGEOFF]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	blr	x8
LBB0_3:
Lloh7:
	adrp	x0, _vgasr_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _vgasr_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh9:
	adrp	x8, _ID_BIT_AUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ID_BIT_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	w4, #0
	mov	w5, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_register_client
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_SWITCHEROO_UNKNOWN_ID,4,2  ; @VGA_SWITCHEROO_UNKNOWN_ID
	.comm	_vgasr_mutex,4,2                ; @vgasr_mutex
	.comm	_vgasr_priv,16,3                ; @vgasr_priv
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ID_BIT_AUDIO,4,2               ; @ID_BIT_AUDIO
.subsections_via_symbols
