	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dg_init
_dg_init:                               ## @dg_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	(%rdi), %rax
	movq	$0, 8(%rax)
	movabsq	$137438953475, %rcx             ## imm = 0x2000000003
	movq	%rcx, (%rax)
	callq	_cs4245_init
	movq	_OXYGEN_GPIO_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_GPIO_MAGIC@GOTPCREL(%rip), %rax
	movq	_GPIO_HP_DETECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_oxygen_clear_bits16
	movq	_GPIO_INPUT_ROUTE@GOTPCREL(%rip), %r15
	movq	_GPIO_HP_REAR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%r15), %edx
	movl	(%r14), %esi
	movq	_GPIO_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_oxygen_set_bits16
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_oxygen_clear_bits16
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dg_output_enable               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_GPIO_CONTROL,4,2        ## @OXYGEN_GPIO_CONTROL
	.comm	_GPIO_MAGIC,4,2                 ## @GPIO_MAGIC
	.comm	_GPIO_HP_DETECT,4,2             ## @GPIO_HP_DETECT
	.comm	_GPIO_INPUT_ROUTE,4,2           ## @GPIO_INPUT_ROUTE
	.comm	_GPIO_HP_REAR,4,2               ## @GPIO_HP_REAR
	.comm	_GPIO_OUTPUT_ENABLE,4,2         ## @GPIO_OUTPUT_ENABLE
	.comm	_OXYGEN_GPIO_DATA,4,2           ## @OXYGEN_GPIO_DATA
	.no_dead_strip	_dg_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dg_init
lCPI0_0:
	.long	3                               ; 0x3
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dg_init:                               ; @dg_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	x8, [x0]
	str	xzr, [x8, #8]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	bl	_cs4245_init
Lloh2:
	adrp	x20, _OXYGEN_GPIO_CONTROL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _OXYGEN_GPIO_CONTROL@GOTPAGEOFF]
Lloh4:
	adrp	x8, _GPIO_MAGIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPIO_MAGIC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _GPIO_HP_DETECT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GPIO_HP_DETECT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_oxygen_clear_bits16
	ldr	w1, [x20]
Lloh10:
	adrp	x20, _GPIO_INPUT_ROUTE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _GPIO_INPUT_ROUTE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh12:
	adrp	x21, _GPIO_HP_REAR@GOTPAGE
Lloh13:
	ldr	x21, [x21, _GPIO_HP_REAR@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _GPIO_OUTPUT_ENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GPIO_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_oxygen_set_bits16
Lloh17:
	adrp	x8, _OXYGEN_GPIO_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OXYGEN_GPIO_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_oxygen_clear_bits16
	mov	x0, x19
	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	_dg_output_enable
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_GPIO_CONTROL,4,2        ; @OXYGEN_GPIO_CONTROL
	.comm	_GPIO_MAGIC,4,2                 ; @GPIO_MAGIC
	.comm	_GPIO_HP_DETECT,4,2             ; @GPIO_HP_DETECT
	.comm	_GPIO_INPUT_ROUTE,4,2           ; @GPIO_INPUT_ROUTE
	.comm	_GPIO_HP_REAR,4,2               ; @GPIO_HP_REAR
	.comm	_GPIO_OUTPUT_ENABLE,4,2         ; @GPIO_OUTPUT_ENABLE
	.comm	_OXYGEN_GPIO_DATA,4,2           ; @OXYGEN_GPIO_DATA
	.no_dead_strip	_dg_init
.subsections_via_symbols
