	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpt_read_ioc_pg_3
_mpt_read_ioc_pg_3:                     ## @mpt_read_ioc_pg_3
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	$0, -88(%rbp)
	movabsq	$12884901888, %rax              ## imm = 0x300000000
	movq	%rax, -104(%rbp)
	movq	_MPI_CONFIG_PAGETYPE_IOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-104(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, -80(%rbp)
	movq	$0, -56(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-104(%rbp), %r14d
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.2:
	shll	$2, %r14d
	movl	(%rbx), %edi
	leaq	-36(%rbp), %rdx
	movl	%r14d, %esi
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movl	-36(%rbp), %eax
	movl	%eax, -80(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%r12, 8(%rbx)
LBB0_6:
	movl	(%rbx), %edi
	movl	-36(%rbp), %ecx
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_pci_free_consistent
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_CONFIG_PAGETYPE_IOC,4,2    ## @MPI_CONFIG_PAGETYPE_IOC
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ## @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mpt_read_ioc_pg_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mpt_read_ioc_pg_3
lCPI0_0:
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mpt_read_ioc_pg_3:                     ; @mpt_read_ioc_pg_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	str	xzr, [sp, #32]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
Lloh2:
	adrp	x8, _MPI_CONFIG_PAGETYPE_IOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPI_CONFIG_PAGETYPE_IOC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x8, sp, #16
	mov	w9, #-1
Lloh5:
	adrp	x10, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
	stp	xzr, x8, [sp, #64]
Lloh7:
	ldr	w8, [x10]
	stp	w9, w8, [sp, #40]
	stp	xzr, xzr, [sp, #48]
	add	x1, sp, #40
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_1
; %bb.3:
	lsl	w20, w8, #2
	ldr	w0, [x19]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_1
; %bb.4:
	mov	x21, x0
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
	add	x1, sp, #40
	mov	x0, x19
	bl	_mpt_config
	cbnz	x0, LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.6:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	x22, [x19, #8]
LBB0_7:
	ldr	w0, [x19]
	ldr	w3, [sp, #12]
	mov	x1, x20
	mov	x2, x21
	bl	_pci_free_consistent
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_CONFIG_PAGETYPE_IOC,4,2    ; @MPI_CONFIG_PAGETYPE_IOC
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ; @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mpt_read_ioc_pg_3
.subsections_via_symbols
