	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_host_interface_version   ## -- Begin function write_host_interface_version
	.p2align	4, 0x90
_write_host_interface_version:          ## @write_host_interface_version
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_HOST_INTERFACE_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HOST_INTERFACE_VERSION_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shll	%cl, %ebx
	movq	_RESERVED_REGISTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GENERAL_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rcx
	callq	_read_8051_config
	notl	%ebx
	andl	-44(%rbp), %ebx
	movb	(%r12), %cl
	shll	%cl, %r15d
	orl	%ebx, %r15d
	movl	%r15d, -44(%rbp)
	movq	_RESERVED_REGISTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_load_8051_config
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_INTERFACE_VERSION_MASK,4,2 ## @HOST_INTERFACE_VERSION_MASK
	.comm	_HOST_INTERFACE_VERSION_SHIFT,4,2 ## @HOST_INTERFACE_VERSION_SHIFT
	.comm	_RESERVED_REGISTERS,4,2         ## @RESERVED_REGISTERS
	.comm	_GENERAL_CONFIG,4,2             ## @GENERAL_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_host_interface_version   ; -- Begin function write_host_interface_version
	.p2align	2
_write_host_interface_version:          ; @write_host_interface_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HOST_INTERFACE_VERSION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOST_INTERFACE_VERSION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _HOST_INTERFACE_VERSION_SHIFT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HOST_INTERFACE_VERSION_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21]
	lsl	w22, w8, w9
Lloh5:
	adrp	x23, _RESERVED_REGISTERS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _RESERVED_REGISTERS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x24, _GENERAL_CONFIG@GOTPAGE
Lloh8:
	ldr	x24, [x24, _GENERAL_CONFIG@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x3, sp, #12
	bl	_read_8051_config
	ldr	w8, [sp, #12]
	bic	w8, w8, w22
	ldr	w9, [x21]
	lsl	w9, w19, w9
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_load_8051_config
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_INTERFACE_VERSION_MASK,4,2 ; @HOST_INTERFACE_VERSION_MASK
	.comm	_HOST_INTERFACE_VERSION_SHIFT,4,2 ; @HOST_INTERFACE_VERSION_SHIFT
	.comm	_RESERVED_REGISTERS,4,2         ; @RESERVED_REGISTERS
	.comm	_GENERAL_CONFIG,4,2             ; @GENERAL_CONFIG
.subsections_via_symbols
