	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mps_get_iocfacts               ## -- Begin function mps_get_iocfacts
	.p2align	4, 0x90
_mps_get_iocfacts:                      ## @mps_get_iocfacts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_MPI2_FUNCTION_IOC_FACTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movl	%r14d, %edi
	movl	$4, %edx
	movq	%rbx, %rcx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	pushq	$10
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_mps_pass_command
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	callq	_IOC_STATUS_SUCCESS
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_MPI2_FUNCTION_IOC_FACTS,4,2    ## @MPI2_FUNCTION_IOC_FACTS
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mps_get_iocfacts               ; -- Begin function mps_get_iocfacts
	.p2align	2
_mps_get_iocfacts:                      ; @mps_get_iocfacts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	mov	w0, #4
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MPI2_FUNCTION_IOC_FACTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI2_FUNCTION_IOC_FACTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x8, #42949672960
	str	x8, [sp]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	mov	x3, x19
	mov	w4, #4
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_mps_pass_command
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
	bl	_IOC_STATUS_SUCCESS
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_free
	mov	x19, #0
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_MPI2_FUNCTION_IOC_FACTS,4,2    ; @MPI2_FUNCTION_IOC_FACTS
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
