	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ktd2692_setup
_ktd2692_setup:                         ## @ktd2692_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_KTD2692_MODE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_ktd2692_expresswire_reset
	movl	(%rbx), %edi
	movq	_KTD2692_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpiod_direction_output
	movq	_KTD2692_MM_MIN_CURR_THRESHOLD_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	_KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ktd2692_expresswire_write
	movl	$45, %edi
	callq	_KTD2692_FLASH_MODE_CURR_PERCENT
	movq	_KTD2692_REG_FLASH_CURRENT_BASE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ktd2692_expresswire_write      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KTD2692_MODE_DISABLE,4,2       ## @KTD2692_MODE_DISABLE
	.comm	_KTD2692_LOW,4,2                ## @KTD2692_LOW
	.comm	_KTD2692_MM_MIN_CURR_THRESHOLD_SCALE,4,2 ## @KTD2692_MM_MIN_CURR_THRESHOLD_SCALE
	.comm	_KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE,4,2 ## @KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE
	.comm	_KTD2692_REG_FLASH_CURRENT_BASE,4,2 ## @KTD2692_REG_FLASH_CURRENT_BASE
	.no_dead_strip	_ktd2692_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ktd2692_setup
_ktd2692_setup:                         ; @ktd2692_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _KTD2692_MODE_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KTD2692_MODE_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	bl	_ktd2692_expresswire_reset
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _KTD2692_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KTD2692_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_gpiod_direction_output
Lloh6:
	adrp	x8, _KTD2692_MM_MIN_CURR_THRESHOLD_SCALE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KTD2692_MM_MIN_CURR_THRESHOLD_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w8, w8, #1
Lloh9:
	adrp	x9, _KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_ktd2692_expresswire_write
	mov	w0, #45
	bl	_KTD2692_FLASH_MODE_CURR_PERCENT
Lloh12:
	adrp	x8, _KTD2692_REG_FLASH_CURRENT_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KTD2692_REG_FLASH_CURRENT_BASE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ktd2692_expresswire_write
	.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	_KTD2692_MODE_DISABLE,4,2       ; @KTD2692_MODE_DISABLE
	.comm	_KTD2692_LOW,4,2                ; @KTD2692_LOW
	.comm	_KTD2692_MM_MIN_CURR_THRESHOLD_SCALE,4,2 ; @KTD2692_MM_MIN_CURR_THRESHOLD_SCALE
	.comm	_KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE,4,2 ; @KTD2692_REG_MM_MIN_CURR_THRESHOLD_BASE
	.comm	_KTD2692_REG_FLASH_CURRENT_BASE,4,2 ; @KTD2692_REG_FLASH_CURRENT_BASE
	.no_dead_strip	_ktd2692_setup
.subsections_via_symbols
