	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_int_set_timer_res          ## -- Begin function qed_int_set_timer_res
	.p2align	4, 0x90
_qed_int_set_timer_res:                 ## @qed_int_set_timer_res
	.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	%rdi, %r15
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r12d
	movq	%rsi, %r14
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_CAU_REG_SB_VAR_MEMORY@GOTPCREL(%rip), %rax
	movslq	%ecx, %r13
	shlq	$2, %r13
	movq	(%rax), %rdx
	addq	%r13, %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_qed_dmae_grc2host
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP_ERR
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movl	-48(%rbp), %edi
	testl	%r12d, %r12d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	_CAU_REG_SB_VAR_MEMORY@GOTPCREL(%rip), %rbx
	leaq	-48(%rbp), %r12
	jne	LBB0_5
## %bb.6:
	movq	_CAU_SB_ENTRY_TIMER_RES0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CAU_SB_ENTRY_TIMER_RES1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_SET_FIELD
	addq	(%rbx), %r13
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_qed_dmae_host2grc
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP_ERR
	movl	%r14d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %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	"hardware not initialized yet\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAU_REG_SB_VAR_MEMORY,8,3      ## @CAU_REG_SB_VAR_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"dmae_grc2host failed %d\n"

	.comm	_CAU_SB_ENTRY_TIMER_RES1,4,2    ## @CAU_SB_ENTRY_TIMER_RES1
	.comm	_CAU_SB_ENTRY_TIMER_RES0,4,2    ## @CAU_SB_ENTRY_TIMER_RES0
L_.str.2:                               ## @.str.2
	.asciz	"dmae_host2grc failed %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_int_set_timer_res          ; -- Begin function qed_int_set_timer_res
	.p2align	2
_qed_int_set_timer_res:                 ; @qed_int_set_timer_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x22, x4
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x24, _CAU_REG_SB_VAR_MEMORY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CAU_REG_SB_VAR_MEMORY@GOTPAGEOFF]
	ldr	x8, [x24]
	sbfiz	x25, x3, #2, #32
	add	x2, x8, x25
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #2
	mov	x5, #0
	bl	_qed_dmae_grc2host
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
	str	x23, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _CAU_SB_ENTRY_TIMER_RES0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAU_SB_ENTRY_TIMER_RES0@GOTPAGEOFF]
	ldr	w0, [sp, #8]
Lloh11:
	adrp	x9, _CAU_SB_ENTRY_TIMER_RES1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CAU_SB_ENTRY_TIMER_RES1@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x2, x21
	bl	_SET_FIELD
	ldr	x8, [x24]
	add	x3, x8, x25
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w4, #2
	mov	x5, #0
	bl	_qed_dmae_host2grc
	mov	x23, x0
	cbz	w0, LBB0_6
; %bb.5:
	str	x23, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware not initialized yet\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAU_REG_SB_VAR_MEMORY,8,3      ; @CAU_REG_SB_VAR_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"dmae_grc2host failed %d\n"

	.comm	_CAU_SB_ENTRY_TIMER_RES1,4,2    ; @CAU_SB_ENTRY_TIMER_RES1
	.comm	_CAU_SB_ENTRY_TIMER_RES0,4,2    ; @CAU_SB_ENTRY_TIMER_RES0
l_.str.2:                               ; @.str.2
	.asciz	"dmae_host2grc failed %d\n"

.subsections_via_symbols
