	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xonar_ds_init
_xonar_ds_init:                         ## @xonar_ds_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	$300, 4(%r14)                   ## imm = 0x12C
	movq	_GPIO_DS_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	callq	_wm8776_init
	movq	%rbx, %rdi
	callq	_wm8766_init
	movq	_OXYGEN_GPIO_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GPIO_DS_INPUT_ROUTE@GOTPCREL(%rip), %r12
	movq	_GPIO_DS_OUTPUT_FRONTLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_oxygen_set_bits16
	movl	(%r15), %esi
	movq	_GPIO_DS_HP_DETECT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_oxygen_clear_bits16
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_oxygen_set_bits16
	movq	_OXYGEN_GPIO_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_oxygen_set_bits16
	movq	_OXYGEN_INT_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_xonar_enable_output
	movl	(%rbx), %edi
	movq	_SND_JACK_HEADPHONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_snd_jack_new
	movq	%rbx, %rdi
	callq	_xonar_ds_handle_hp_jack
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_snd_component_add
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_component_add              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_DS_OUTPUT_ENABLE,4,2      ## @GPIO_DS_OUTPUT_ENABLE
	.comm	_OXYGEN_GPIO_CONTROL,4,2        ## @OXYGEN_GPIO_CONTROL
	.comm	_GPIO_DS_INPUT_ROUTE,4,2        ## @GPIO_DS_INPUT_ROUTE
	.comm	_GPIO_DS_OUTPUT_FRONTLR,4,2     ## @GPIO_DS_OUTPUT_FRONTLR
	.comm	_GPIO_DS_HP_DETECT,4,2          ## @GPIO_DS_HP_DETECT
	.comm	_OXYGEN_GPIO_DATA,4,2           ## @OXYGEN_GPIO_DATA
	.comm	_OXYGEN_GPIO_INTERRUPT_MASK,4,2 ## @OXYGEN_GPIO_INTERRUPT_MASK
	.comm	_OXYGEN_INT_GPIO,4,2            ## @OXYGEN_INT_GPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Headphone"

	.comm	_SND_JACK_HEADPHONE,4,2         ## @SND_JACK_HEADPHONE
L_.str.1:                               ## @.str.1
	.asciz	"WM8776"

L_.str.2:                               ## @.str.2
	.asciz	"WM8766"

	.no_dead_strip	_xonar_ds_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xonar_ds_init
_xonar_ds_init:                         ; @xonar_ds_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]
	mov	w8, #300
Lloh0:
	adrp	x9, _GPIO_DS_OUTPUT_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPIO_DS_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #4]
	bl	_wm8776_init
	mov	x0, x19
	bl	_wm8766_init
Lloh3:
	adrp	x21, _OXYGEN_GPIO_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OXYGEN_GPIO_CONTROL@GOTPAGEOFF]
Lloh5:
	adrp	x22, _GPIO_DS_INPUT_ROUTE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GPIO_DS_INPUT_ROUTE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _GPIO_DS_OUTPUT_FRONTLR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GPIO_DS_OUTPUT_FRONTLR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_oxygen_set_bits16
	ldr	w1, [x21]
Lloh10:
	adrp	x21, _GPIO_DS_HP_DETECT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _GPIO_DS_HP_DETECT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_oxygen_clear_bits16
Lloh12:
	adrp	x8, _OXYGEN_GPIO_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OXYGEN_GPIO_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_oxygen_set_bits16
Lloh15:
	adrp	x8, _OXYGEN_GPIO_INTERRUPT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OXYGEN_GPIO_INTERRUPT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_oxygen_set_bits16
Lloh18:
	adrp	x8, _OXYGEN_INT_GPIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OXYGEN_INT_GPIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_xonar_enable_output
	ldr	w0, [x19]
Lloh21:
	adrp	x8, _SND_JACK_HEADPHONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SND_JACK_HEADPHONE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_snd_jack_new
	mov	x0, x19
	bl	_xonar_ds_handle_hp_jack
	ldr	w0, [x19]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_snd_component_add
	ldr	w0, [x19]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@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	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_DS_OUTPUT_ENABLE,4,2      ; @GPIO_DS_OUTPUT_ENABLE
	.comm	_OXYGEN_GPIO_CONTROL,4,2        ; @OXYGEN_GPIO_CONTROL
	.comm	_GPIO_DS_INPUT_ROUTE,4,2        ; @GPIO_DS_INPUT_ROUTE
	.comm	_GPIO_DS_OUTPUT_FRONTLR,4,2     ; @GPIO_DS_OUTPUT_FRONTLR
	.comm	_GPIO_DS_HP_DETECT,4,2          ; @GPIO_DS_HP_DETECT
	.comm	_OXYGEN_GPIO_DATA,4,2           ; @OXYGEN_GPIO_DATA
	.comm	_OXYGEN_GPIO_INTERRUPT_MASK,4,2 ; @OXYGEN_GPIO_INTERRUPT_MASK
	.comm	_OXYGEN_INT_GPIO,4,2            ; @OXYGEN_INT_GPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Headphone"

	.comm	_SND_JACK_HEADPHONE,4,2         ; @SND_JACK_HEADPHONE
l_.str.1:                               ; @.str.1
	.asciz	"WM8776"

l_.str.2:                               ; @.str.2
	.asciz	"WM8766"

	.no_dead_strip	_xonar_ds_init
.subsections_via_symbols
