	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_update_config_rom_image   ## -- Begin function hpsb_update_config_rom_image
	.p2align	4, 0x90
_hpsb_update_config_rom_image:          ## @hpsb_update_config_rom_image
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	8(%rdi), %eax
	leal	1(%rax), %ecx
	cmpl	$15, %eax
	movl	$2, %ebx
	cmovll	%ecx, %ebx
	callq	_cancel_delayed_work
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	16(%r14), %rax
	movslq	%ebx, %r12
	movq	_HZ@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	imulq	$60, %rcx, %rsi
	addq	(%rax,%r12,8), %rsi
	callq	_time_before
	movslq	(%rbx), %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	imulq	$60, %rbx, %rbx
	movq	16(%r14), %rax
	addq	(%rax,%r12,8), %rbx
	subq	(%r15), %rbx
LBB0_4:
	movq	_delayed_reset_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PREPARE_DELAYED_WORK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_schedule_delayed_work
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_delayed_reset_bus,4,2          ## @delayed_reset_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_update_config_rom_image   ; -- Begin function hpsb_update_config_rom_image
	.p2align	2
_hpsb_update_config_rom_image:          ; @hpsb_update_config_rom_image
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #14
	mov	w9, #2
	csinc	w22, w9, w8, gt
	bl	_cancel_delayed_work
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, w22, sxtw #3]
	ldr	x0, [x21]
Lloh2:
	adrp	x20, _HZ@GOTPAGE
Lloh3:
	ldr	x20, [x20, _HZ@GOTPAGEOFF]
	ldrsw	x9, [x20]
	mov	w10, #60
	madd	x1, x9, x10, x8
	bl	_time_before
	ldrsw	x20, [x20]
	cbz	x0, LBB0_3
; %bb.2:
	sxtw	x8, w22
	mov	w9, #60
	ldr	x10, [x19, #16]
	ldr	x8, [x10, x8, lsl #3]
	madd	x8, x20, x9, x8
	ldr	x9, [x21]
	sub	x20, x8, x9
LBB0_3:
Lloh4:
	adrp	x8, _delayed_reset_bus@GOTPAGE
Lloh5:
	ldr	x8, [x8, _delayed_reset_bus@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PREPARE_DELAYED_WORK
	mov	x0, x19
	mov	x1, x20
	bl	_schedule_delayed_work
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_delayed_reset_bus,4,2          ; @delayed_reset_bus
.subsections_via_symbols
