	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xonar_hdav_init
_xonar_hdav_init:                       ## @xonar_hdav_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_OXYGEN_2WIRE_BUS_STATUS@GOTPCREL(%rip), %rax
	movq	_OXYGEN_2WIRE_LENGTH_8@GOTPCREL(%rip), %rcx
	movq	_OXYGEN_2WIRE_INTERRUPT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_OXYGEN_2WIRE_SPEED_STANDARD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_oxygen_write16
	movl	$100, 12(%r14)
	movq	_GPIO_HDAV_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_OXYGEN_GPI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_OXYGEN_GPI_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_GPI_EXT_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	4(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 4(%r14)
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	setge	%cl
	movl	%ecx, 8(%r14)
	movq	%rbx, %rdi
	callq	_pcm1796_init
	movq	_OXYGEN_GPIO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPIO_HDAV_MAGIC@GOTPCREL(%rip), %rax
	movq	_GPIO_INPUT_ROUTE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_oxygen_set_bits16
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_oxygen_clear_bits16
	movq	%rbx, %rdi
	callq	_xonar_init_cs53x1
	movq	%rbx, %rdi
	callq	_xonar_init_ext_power
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xonar_hdmi_init
	movq	%rbx, %rdi
	callq	_xonar_enable_output
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_snd_component_add
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_component_add              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_2WIRE_BUS_STATUS,4,2    ## @OXYGEN_2WIRE_BUS_STATUS
	.comm	_OXYGEN_2WIRE_LENGTH_8,4,2      ## @OXYGEN_2WIRE_LENGTH_8
	.comm	_OXYGEN_2WIRE_INTERRUPT_MASK,4,2 ## @OXYGEN_2WIRE_INTERRUPT_MASK
	.comm	_OXYGEN_2WIRE_SPEED_STANDARD,4,2 ## @OXYGEN_2WIRE_SPEED_STANDARD
	.comm	_GPIO_HDAV_OUTPUT_ENABLE,4,2    ## @GPIO_HDAV_OUTPUT_ENABLE
	.comm	_OXYGEN_GPI_DATA,4,2            ## @OXYGEN_GPI_DATA
	.comm	_OXYGEN_GPI_INTERRUPT_MASK,4,2  ## @OXYGEN_GPI_INTERRUPT_MASK
	.comm	_GPI_EXT_POWER,4,2              ## @GPI_EXT_POWER
	.comm	_OXYGEN_GPIO_CONTROL,4,2        ## @OXYGEN_GPIO_CONTROL
	.comm	_GPIO_HDAV_MAGIC,4,2            ## @GPIO_HDAV_MAGIC
	.comm	_GPIO_INPUT_ROUTE,4,2           ## @GPIO_INPUT_ROUTE
	.comm	_OXYGEN_GPIO_DATA,4,2           ## @OXYGEN_GPIO_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCM1796"

L_.str.1:                               ## @.str.1
	.asciz	"CS5381"

	.no_dead_strip	_xonar_hdav_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xonar_hdav_init
_xonar_hdav_init:                       ; @xonar_hdav_init
	.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, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _OXYGEN_2WIRE_BUS_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OXYGEN_2WIRE_BUS_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OXYGEN_2WIRE_LENGTH_8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OXYGEN_2WIRE_LENGTH_8@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _OXYGEN_2WIRE_INTERRUPT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OXYGEN_2WIRE_INTERRUPT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _OXYGEN_2WIRE_SPEED_STANDARD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OXYGEN_2WIRE_SPEED_STANDARD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_oxygen_write16
Lloh12:
	adrp	x8, _GPIO_HDAV_OUTPUT_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIO_HDAV_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #28]
Lloh15:
	adrp	x8, _OXYGEN_GPI_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OXYGEN_GPI_DATA@GOTPAGEOFF]
Lloh17:
	adrp	x9, _OXYGEN_GPI_INTERRUPT_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OXYGEN_GPI_INTERRUPT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
Lloh21:
	adrp	x8, _GPI_EXT_POWER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GPI_EXT_POWER@GOTPAGEOFF]
	mov	w9, #100
Lloh23:
	ldr	w8, [x8]
	stp	w9, w8, [x20, #12]
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	w8, #2
	cset	w8, gt
	stp	w9, w8, [x20, #4]
	mov	x0, x19
	bl	_pcm1796_init
Lloh24:
	adrp	x8, _OXYGEN_GPIO_CONTROL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OXYGEN_GPIO_CONTROL@GOTPAGEOFF]
Lloh26:
	adrp	x9, _GPIO_HDAV_MAGIC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GPIO_HDAV_MAGIC@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	ldr	w8, [x9]
Lloh30:
	adrp	x21, _GPIO_INPUT_ROUTE@GOTPAGE
Lloh31:
	ldr	x21, [x21, _GPIO_INPUT_ROUTE@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_oxygen_set_bits16
Lloh32:
	adrp	x8, _OXYGEN_GPIO_DATA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OXYGEN_GPIO_DATA@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_oxygen_clear_bits16
	mov	x0, x19
	bl	_xonar_init_cs53x1
	mov	x0, x19
	bl	_xonar_init_ext_power
	mov	x0, x19
	mov	x1, x20
	bl	_xonar_hdmi_init
	mov	x0, x19
	bl	_xonar_enable_output
	ldr	w0, [x19]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	bl	_snd_component_add
	ldr	w0, [x19]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	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	_snd_component_add
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_2WIRE_BUS_STATUS,4,2    ; @OXYGEN_2WIRE_BUS_STATUS
	.comm	_OXYGEN_2WIRE_LENGTH_8,4,2      ; @OXYGEN_2WIRE_LENGTH_8
	.comm	_OXYGEN_2WIRE_INTERRUPT_MASK,4,2 ; @OXYGEN_2WIRE_INTERRUPT_MASK
	.comm	_OXYGEN_2WIRE_SPEED_STANDARD,4,2 ; @OXYGEN_2WIRE_SPEED_STANDARD
	.comm	_GPIO_HDAV_OUTPUT_ENABLE,4,2    ; @GPIO_HDAV_OUTPUT_ENABLE
	.comm	_OXYGEN_GPI_DATA,4,2            ; @OXYGEN_GPI_DATA
	.comm	_OXYGEN_GPI_INTERRUPT_MASK,4,2  ; @OXYGEN_GPI_INTERRUPT_MASK
	.comm	_GPI_EXT_POWER,4,2              ; @GPI_EXT_POWER
	.comm	_OXYGEN_GPIO_CONTROL,4,2        ; @OXYGEN_GPIO_CONTROL
	.comm	_GPIO_HDAV_MAGIC,4,2            ; @GPIO_HDAV_MAGIC
	.comm	_GPIO_INPUT_ROUTE,4,2           ; @GPIO_INPUT_ROUTE
	.comm	_OXYGEN_GPIO_DATA,4,2           ; @OXYGEN_GPIO_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCM1796"

l_.str.1:                               ; @.str.1
	.asciz	"CS5381"

	.no_dead_strip	_xonar_hdav_init
.subsections_via_symbols
