	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt_get_xml_str                 ## -- Begin function mt_get_xml_str
	.p2align	4, 0x90
_mt_get_xml_str:                        ## @mt_get_xml_str
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movl	%edi, %r12d
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movl	$32768, %ebx                    ## imm = 0x8000
	movl	$32768, %edi                    ## imm = 0x8000
	callq	_malloc
	movq	%rax, (%r13)
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movq	_MT_EXT_GET_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	callq	_free
	movq	$0, (%r13)
	movq	-48(%rbp), %rax
	movq	_MT_EXT_GET_NEED_MORE_SPACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %rbx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_bzero
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_6:
	movq	(%r13), %rdi
	callq	_free
	movq	$0, (%r13)
LBB0_8:
	movl	$-1, %ecx
	jmp	LBB0_9
LBB0_5:
	xorl	%ecx, %ecx
LBB0_9:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EXT_GET_OK,8,3              ## @MT_EXT_GET_OK
	.comm	_MT_EXT_GET_NEED_MORE_SPACE,8,3 ## @MT_EXT_GET_NEED_MORE_SPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt_get_xml_str                 ; -- Begin function mt_get_xml_str
	.p2align	2
_mt_get_xml_str:                        ; @mt_get_xml_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #24
	bl	_bzero
	mov	w0, #32768
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.1:
	mov	w22, #32768
Lloh0:
	adrp	x23, _MT_EXT_GET_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MT_EXT_GET_OK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MT_EXT_GET_NEED_MORE_SPACE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MT_EXT_GET_NEED_MORE_SPACE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	x0, x22, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_ioctl
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	ldr	x8, [sp, #24]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x22, x22, #1
	add	x0, sp, #8
	mov	w1, #24
	bl	_bzero
	mov	x0, x22
	bl	_malloc
	str	x0, [x19]
	cbnz	x0, LBB0_2
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EXT_GET_OK,8,3              ; @MT_EXT_GET_OK
	.comm	_MT_EXT_GET_NEED_MORE_SPACE,8,3 ; @MT_EXT_GET_NEED_MORE_SPACE
.subsections_via_symbols
