	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_config_rom
_get_config_rom:                        ## @get_config_rom
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdi
	movq	_CSR1212_CONFIG_ROM_SPACE_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %ecx
	movq	%rax, %rdx
	movq	%rbx, %r12
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_csr1212_read
	movl	%eax, -44(%rbp)
	movl	16(%r15), %edi
	callq	_int2ptr
	movl	(%r15), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_copy_to_user
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	testq	%rax, %rax
	cmovel	%r14d, %r13d
	movl	12(%r15), %edi
	callq	_int2ptr
	movq	%r12, %rbx
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copy_to_user
	xorl	%r12d, %r12d
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r12d
	testq	%rax, %rax
	cmovel	%r13d, %r12d
	movl	8(%r15), %edi
	callq	_int2ptr
	movq	(%rbx), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copy_to_user
	xorl	%ebx, %ebx
	movq	_EFAULT@GOTPCREL(%rip), %r13
	subl	(%r13), %ebx
	testq	%rax, %rax
	cmovel	%r12d, %ebx
	movl	4(%r15), %edi
	callq	_int2ptr
	leaq	-44(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copy_to_user
	subl	(%r13), %r14d
	testq	%rax, %rax
	cmovel	%ebx, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_free_pending_request
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CSR1212_CONFIG_ROM_SPACE_OFFSET,4,2 ## @CSR1212_CONFIG_ROM_SPACE_OFFSET
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_get_config_rom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_config_rom
_get_config_rom:                        ; @get_config_rom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
Lloh3:
	adrp	x8, _CSR1212_CONFIG_ROM_SPACE_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR1212_CONFIG_ROM_SPACE_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	x2, x20
	bl	_csr1212_read
	str	w0, [sp, #12]
	ldr	w0, [x19, #16]
	bl	_int2ptr
	ldr	w2, [x19]
	mov	x1, x20
	bl	_copy_to_user
Lloh6:
	adrp	x22, _EFAULT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EFAULT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x0, #0
	csneg	w23, wzr, w8, eq
	ldr	w0, [x19, #12]
	bl	_int2ptr
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
	mov	w2, #4
	bl	_copy_to_user
	ldr	w8, [x22]
	cmp	x0, #0
	csneg	w23, w23, w8, eq
	ldr	w0, [x19, #8]
	bl	_int2ptr
	ldr	x1, [x21]
	mov	w2, #4
	bl	_copy_to_user
	ldr	w8, [x22]
	cmp	x0, #0
	csneg	w21, w23, w8, eq
	ldr	w0, [x19, #4]
	bl	_int2ptr
	add	x1, sp, #12
	mov	w2, #4
	bl	_copy_to_user
	ldr	w8, [x22]
	cmp	x0, #0
	csneg	w21, w21, w8, eq
	mov	x0, x20
	bl	_kfree
	tbnz	w21, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_free_pending_request
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CSR1212_CONFIG_ROM_SPACE_OFFSET,4,2 ; @CSR1212_CONFIG_ROM_SPACE_OFFSET
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_get_config_rom
.subsections_via_symbols
