	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_read_extended_config_page  ## -- Begin function mpt_read_extended_config_page
	.p2align	4, 0x90
_mpt_read_extended_config_page:         ## @mpt_read_extended_config_page
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r12d
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movq	_MPI_IOCSTATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r9)
LBB0_2:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	leaq	-104(%rbp), %rdi
	movl	$56, %esi
	callq	_bzero
	movq	%r14, -72(%rbp)
	movq	%r13, -80(%rbp)
	movq	%rbx, -88(%rbp)
	movl	%r15d, -56(%rbp)
	movq	_MPTIO_READ_EXT_CFG_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	leaq	-104(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_16
## %bb.3:
	movl	-100(%rbp), %edi
	callq	_IOC_STATUS_SUCCESS
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	leaq	-96(%rbp), %r14
	movl	-96(%rbp), %edi
	shll	$2, %edi
	movl	%edi, -104(%rbp)
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm0, (%rax)
	movups	%xmm1, 16(%rax)
	movq	_MPTIO_READ_EXT_CFG_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movl	%r12d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movl	-100(%rbp), %edi
	callq	_IOC_STATUS_SUCCESS
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movl	-100(%rbp), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%edi, (%rax)
	jmp	LBB0_13
LBB0_4:
	movl	-100(%rbp), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%edi, (%rax)
	jmp	LBB0_14
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_6:
	callq	_mpt_ioc_status
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	jmp	LBB0_14
LBB0_12:
	callq	_mpt_ioc_status
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_13:
	movq	%rbx, %rdi
	callq	_free
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_IOCSTATUS_SUCCESS,4,2      ## @MPI_IOCSTATUS_SUCCESS
	.comm	_MPTIO_READ_EXT_CFG_HEADER,4,2  ## @MPTIO_READ_EXT_CFG_HEADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading extended config page header failed: %s"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.comm	_MPTIO_READ_EXT_CFG_PAGE,4,2    ## @MPTIO_READ_EXT_CFG_PAGE
L_.str.1:                               ## @.str.1
	.asciz	"Reading extended config page failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_read_extended_config_page  ; -- Begin function mpt_read_extended_config_page
	.p2align	2
_mpt_read_extended_config_page:         ; @mpt_read_extended_config_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x21, x0
	cbz	x5, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MPI_IOCSTATUS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_IOCSTATUS_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #56
	bl	_bzero
	stp	x22, x24, [sp, #32]
	str	x23, [sp, #24]
	str	w20, [sp, #56]
Lloh3:
	adrp	x8, _MPTIO_READ_EXT_CFG_HEADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPTIO_READ_EXT_CFG_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_8
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_IOC_STATUS_SUCCESS
	cbz	w0, LBB0_9
; %bb.4:
	add	x22, x25, #8
	ldr	w8, [sp, #16]
	lsl	w0, w8, #2
	str	w0, [sp, #8]
	bl	_malloc
	mov	x20, x0
	str	x0, [sp, #48]
	ldp	q1, q0, [x22]
	stp	q1, q0, [x0]
Lloh6:
	adrp	x8, _MPTIO_READ_EXT_CFG_PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPTIO_READ_EXT_CFG_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_11
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_IOC_STATUS_SUCCESS
	cbnz	w0, LBB0_17
; %bb.6:
	ldr	w0, [sp, #12]
	cbz	x19, LBB0_13
; %bb.7:
	str	w0, [x19]
	b	LBB0_14
LBB0_8:
	mov	x20, #0
	b	LBB0_17
LBB0_9:
	ldr	w0, [sp, #12]
	cbz	x19, LBB0_12
; %bb.10:
	str	w0, [x19]
	b	LBB0_15
LBB0_11:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_free
	b	LBB0_16
LBB0_12:
	bl	_mpt_ioc_status
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_15
LBB0_13:
	bl	_mpt_ioc_status
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
LBB0_14:
	mov	x0, x20
	bl	_free
LBB0_15:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
LBB0_16:
	mov	x20, #0
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	str	w19, [x8]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_IOCSTATUS_SUCCESS,4,2      ; @MPI_IOCSTATUS_SUCCESS
	.comm	_MPTIO_READ_EXT_CFG_HEADER,4,2  ; @MPTIO_READ_EXT_CFG_HEADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading extended config page header failed: %s"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.comm	_MPTIO_READ_EXT_CFG_PAGE,4,2    ; @MPTIO_READ_EXT_CFG_PAGE
l_.str.1:                               ; @.str.1
	.asciz	"Reading extended config page failed: %s"

.subsections_via_symbols
