	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_config_rom
_update_config_rom:                     ## @update_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
	pushq	%rax
	.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, %r14
	movl	16(%rsi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	20(%r15), %edi
	callq	_int2ptr
	movl	16(%r15), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	4(%r14), %edi
	movl	16(%r15), %edx
	movzbl	8(%r15), %ecx
	movq	%r12, %rsi
	callq	_hpsb_update_config_rom
	movl	%eax, -44(%rbp)
	movl	(%r15), %edi
	callq	_int2ptr
	leaq	-44(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r13d
	movl	%r13d, %ebx
	negl	%ebx
	movq	%r12, %rdi
	callq	_kfree
	testl	%r13d, %r13d
	jg	LBB0_8
	jmp	LBB0_7
LBB0_9:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_free_pending_request
	movl	$1, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %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	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_update_config_rom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_config_rom
_update_config_rom:                     ; @update_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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
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	x21, x0
	ldr	w0, [x20, #20]
	bl	_int2ptr
	mov	x1, x0
	ldr	w2, [x20, #16]
	mov	x0, x21
	bl	_copy_from_user
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #4]
	ldr	w2, [x20, #16]
	ldrb	w3, [x20, #8]
	mov	x1, x21
	bl	_hpsb_update_config_rom
	str	w0, [sp, #12]
	ldr	w0, [x20]
	bl	_int2ptr
	add	x1, sp, #12
	mov	w2, #4
	bl	_copy_to_user
	cbz	x0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w23, [x8]
	neg	w22, w23
	mov	x0, x21
	bl	_kfree
	cmp	w23, #0
	b.gt	LBB0_9
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_kfree
	mov	w22, #0
LBB0_8:
	mov	x0, x20
	bl	_free_pending_request
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	mov	x0, x22
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_update_config_rom
.subsections_via_symbols
