	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_config
_set_config:                            ## @set_config
	.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	%rsi, %rbx
	callq	_HW_HPD_FROM_BASE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_toggle_filt_cntl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DC_HPD_CONNECT_INT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$34, %rdx
	addl	%eax, %edx
	movq	_DC_HPD_DISCONNECT_INT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movslq	4(%rbx), %rax
	imulq	$1717986919, %rax, %r8          ## imm = 0x66666667
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$34, %r8
	addl	%eax, %r8d
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_REG_UPDATE_2
	movq	_GPIO_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GPIO_RESULT_INVALID_DATA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_RESULT_INVALID_DATA,4,2   ## @GPIO_RESULT_INVALID_DATA
	.comm	_toggle_filt_cntl,4,2           ## @toggle_filt_cntl
	.comm	_DC_HPD_CONNECT_INT_DELAY,4,2   ## @DC_HPD_CONNECT_INT_DELAY
	.comm	_DC_HPD_DISCONNECT_INT_DELAY,4,2 ## @DC_HPD_DISCONNECT_INT_DELAY
	.comm	_GPIO_RESULT_OK,4,2             ## @GPIO_RESULT_OK
	.no_dead_strip	_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_config
_set_config:                            ; @set_config
	.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, x1
	bl	_HW_HPD_FROM_BASE
	cbz	x19, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _toggle_filt_cntl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _toggle_filt_cntl@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DC_HPD_CONNECT_INT_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_HPD_CONNECT_INT_DELAY@GOTPAGEOFF]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	ldpsw	x10, x11, [x19]
	mul	x10, x10, x9
	lsr	x12, x10, #63
	asr	x10, x10, #34
	add	w2, w10, w12
Lloh5:
	adrp	x10, _DC_HPD_DISCONNECT_INT_DELAY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DC_HPD_DISCONNECT_INT_DELAY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w3, [x10]
	mul	x8, x11, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w4, w8, w9
	bl	_REG_UPDATE_2
Lloh9:
	adrp	x8, _GPIO_RESULT_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIO_RESULT_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _GPIO_RESULT_INVALID_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIO_RESULT_INVALID_DATA@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_RESULT_INVALID_DATA,4,2   ; @GPIO_RESULT_INVALID_DATA
	.comm	_toggle_filt_cntl,4,2           ; @toggle_filt_cntl
	.comm	_DC_HPD_CONNECT_INT_DELAY,4,2   ; @DC_HPD_CONNECT_INT_DELAY
	.comm	_DC_HPD_DISCONNECT_INT_DELAY,4,2 ; @DC_HPD_DISCONNECT_INT_DELAY
	.comm	_GPIO_RESULT_OK,4,2             ; @GPIO_RESULT_OK
	.no_dead_strip	_set_config
.subsections_via_symbols
