	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_partition_platform_config
_read_partition_platform_config:        ## @read_partition_platform_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_P1_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_P1_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_read_length
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_IMAGE_START_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_IMAGE_TRAIL_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_strnstr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movl	(%r13), %eax
	jmp	LBB0_10
LBB0_8:
	subl	%r12d, %eax
LBB0_10:
	movq	%r12, (%r15)
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_P1_SIZE,4,2                    ## @P1_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_P1_START,4,2                   ## @P1_START
	.comm	_IMAGE_START_MAGIC,4,2          ## @IMAGE_START_MAGIC
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IMAGE_TRAIL_MAGIC,4,2          ## @IMAGE_TRAIL_MAGIC
	.no_dead_strip	_read_partition_platform_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_partition_platform_config
_read_partition_platform_config:        ; @read_partition_platform_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x0
Lloh0:
	adrp	x23, _P1_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _P1_SIZE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _P1_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P1_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x22
	mov	x3, x21
	bl	_read_length
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _IMAGE_START_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IMAGE_START_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_kfree
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x8, _IMAGE_TRAIL_MAGIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IMAGE_TRAIL_MAGIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_strnstr
	mov	w22, #0
	sub	w8, w0, w21
	ldr	w9, [x23]
	cmp	x0, #0
	csel	w8, w9, w8, eq
	str	x21, [x20]
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_P1_SIZE,4,2                    ; @P1_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_P1_START,4,2                   ; @P1_START
	.comm	_IMAGE_START_MAGIC,4,2          ; @IMAGE_START_MAGIC
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IMAGE_TRAIL_MAGIC,4,2          ; @IMAGE_TRAIL_MAGIC
	.no_dead_strip	_read_partition_platform_config
.subsections_via_symbols
