	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_update_config_rom         ## -- Begin function hpsb_update_config_rom
	.p2align	4, 0x90
_hpsb_update_config_rom:                ## @hpsb_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
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_NOTICE
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$-1, %ebx
	cmpb	%r12b, (%r13)
	jne	LBB0_5
## %bb.1:
	movq	8(%r13), %rax
	movq	8(%rax), %rax
	movl	$-2, %ebx
	cmpq	%r15, (%rax)
	jb	LBB0_5
## %bb.2:
	movl	16(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movq	8(%r13), %rax
	movq	8(%rax), %rcx
	movq	%r15, 8(%rcx)
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*%rcx
LBB0_4:
	movb	(%r13), %al
	leal	1(%rax), %ecx
	addb	$-15, %al
	cmpb	$-14, %al
	movzbl	%cl, %eax
	movl	$2, %ecx
	cmovael	%eax, %ecx
	movb	%cl, (%r13)
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hpsb_update_config_rom() is deprecated"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_update_config_rom         ; -- Begin function hpsb_update_config_rom
	.p2align	2
_hpsb_update_config_rom:                ; @hpsb_update_config_rom
	.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	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_NOTICE
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldrb	w8, [x20]
	cmp	w8, w23
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	cmp	x9, x21
	b.hs	LBB0_4
; %bb.2:
	mov	w21, #-2
	b	LBB0_7
LBB0_3:
	mov	w21, #-1
	b	LBB0_7
LBB0_4:
	ldr	w0, [x8, #16]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldp	x8, x9, [x20, #8]
	ldr	x10, [x8, #8]
	str	x21, [x10, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w1, [x8]
	mov	x0, x20
	blr	x9
LBB0_6:
	mov	w21, #0
	ldrb	w8, [x20]
	sub	w9, w8, #15
	and	w9, w9, #0xff
	cmp	w9, #242
	mov	w9, #2
	csinc	w8, w9, w8, lo
	strb	w8, [x20]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hpsb_update_config_rom() is deprecated"

.subsections_via_symbols
