	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_read_config_page_header    ## -- Begin function mpt_read_config_page_header
	.p2align	4, 0x90
_mpt_read_config_page_header:           ## @mpt_read_config_page_header
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r12d
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movq	_MPI_IOCSTATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_2:
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movq	%r14, -56(%rbp)
	movq	%rbx, -64(%rbp)
	movl	%r13d, -44(%rbp)
	movq	_MPTIO_READ_CFG_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movl	-48(%rbp), %edi
	callq	_IOC_STATUS_SUCCESS
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movups	-64(%rbp), %xmm0
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movl	-48(%rbp), %edi
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	%edi, (%r15)
	jmp	LBB0_9
LBB0_8:
	callq	_mpt_ioc_status
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$40, %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_CFG_HEADER,4,2      ## @MPTIO_READ_CFG_HEADER
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading config page header failed: %s"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_read_config_page_header    ; -- Begin function mpt_read_config_page_header
	.p2align	2
_mpt_read_config_page_header:           ; @mpt_read_config_page_header
	.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, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, 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	x0, sp, #8
	mov	w1, #24
	bl	_bzero
	stp	x23, x24, [sp, #8]
	str	w22, [sp, #28]
Lloh3:
	adrp	x8, _MPTIO_READ_CFG_HEADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPTIO_READ_CFG_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	w0, [sp, #24]
	bl	_IOC_STATUS_SUCCESS
	cbz	w0, LBB0_6
; %bb.4:
	mov	w0, #0
	ldur	q0, [sp, #8]
	str	q0, [x20]
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	w0, [sp, #24]
	cbz	x19, LBB0_8
; %bb.7:
	str	w0, [x19]
	b	LBB0_9
LBB0_8:
	bl	_mpt_ioc_status
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_9:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_IOCSTATUS_SUCCESS,4,2      ; @MPI_IOCSTATUS_SUCCESS
	.comm	_MPTIO_READ_CFG_HEADER,4,2      ; @MPTIO_READ_CFG_HEADER
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading config page header failed: %s"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
