	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_idc_update_audit_reg
_qlcnic_83xx_idc_update_audit_reg:      ## @qlcnic_83xx_idc_update_audit_reg
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_qlcnic_83xx_lock_driver
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	8(%r12), %rdi
	movq	_QLC_83XX_IDC_DRV_AUDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movl	%eax, %ecx
	movl	(%r12), %esi
	andl	$15, %esi
	movl	%r15d, %ebx
	shll	$7, %ebx
	movq	_jiffies@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_HZ@GOTPCREL(%rip), %r8
	cltd
	idivl	(%r8)
	movq	8(%r12), %rdi
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	movq	%r8, %r15
	subl	(%rdi), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r8, %r15
LBB0_6:
	movq	_QLC_83XX_IDC_DRV_AUDIT@GOTPCREL(%rip), %rdx
	shll	$8, %eax
	orl	%ebx, %ecx
	orl	%esi, %ecx
	orl	%eax, %ecx
	movl	(%rdx), %esi
	movl	%ecx, %edx
	callq	_QLCWRX
	movl	(%r13), %eax
	cltd
	idivl	(%r15)
	xorl	%ebx, %ebx
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_qlcnic_83xx_unlock_driver
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	_EBUSY,4,2                      ## @EBUSY
	.comm	_QLC_83XX_IDC_DRV_AUDIT,4,2     ## @QLC_83XX_IDC_DRV_AUDIT
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_qlcnic_83xx_idc_update_audit_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_idc_update_audit_reg
_qlcnic_83xx_idc_update_audit_reg:      ; @qlcnic_83xx_idc_update_audit_reg
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	w2, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_83xx_lock_driver
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x22, _QLC_83XX_IDC_DRV_AUDIT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QLC_83XX_IDC_DRV_AUDIT@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_QLCRDX
	ldr	w8, [x19]
	and	w9, w8, #0xf
	lsl	w10, w21, #7
Lloh5:
	adrp	x23, _jiffies@GOTPAGE
Lloh6:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _HZ@GOTPAGE
Lloh8:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	ldr	w11, [x24]
	sdiv	w11, w8, w11
	ldr	x8, [x19, #8]
	cbz	w21, LBB0_5
; %bb.4:
	ldr	w12, [x8]
	sub	w11, w11, w12
LBB0_5:
	orr	w10, w0, w10
	orr	w9, w10, w9
	orr	w2, w9, w11, lsl #8
	ldr	w1, [x22]
	mov	x0, x8
	bl	_QLCWRX
	ldr	w8, [x23]
	ldr	w9, [x24]
	sdiv	w8, w8, w9
	ldr	x9, [x19, #8]
	str	w8, [x9]
	cbz	w20, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_driver
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_QLC_83XX_IDC_DRV_AUDIT,4,2     ; @QLC_83XX_IDC_DRV_AUDIT
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_qlcnic_83xx_idc_update_audit_reg
.subsections_via_symbols
