	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_set_tmr_level           ## -- Begin function vlapic_set_tmr_level
	.p2align	4, 0x90
_vlapic_set_tmr_level:                  ## @vlapic_set_tmr_level
	.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	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$256, %r8d                      ## imm = 0x100
	setb	%dil
	movslq	%r8d, %rsi
	callq	_KASSERT
	movq	_APIC_DELMODE_FIXED@GOTPCREL(%rip), %rcx
	movq	_APIC_DELMODE_LOWPRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, (%rcx)
	je	LBB0_2
## %bb.1:
	cmpl	%ebx, %eax
	je	LBB0_2
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VLAPIC_CTR1                    ## TAILCALL
LBB0_2:
	xorl	%r8d, %r8d
	cmpl	%ebx, %eax
	sete	%r8b
	movl	4(%r14), %edi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	callq	_vlapic_calcdest
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_CPU_ISSET
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_VLAPIC_CTR1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_vlapic_set_tmr
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_DELMODE_FIXED,4,2         ## @APIC_DELMODE_FIXED
	.comm	_APIC_DELMODE_LOWPRIO,4,2       ## @APIC_DELMODE_LOWPRIO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring level trigger-mode for delivery-mode %d"

L_.str.2:                               ## @.str.2
	.asciz	"vector %d set to level-triggered"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_set_tmr_level           ; -- Begin function vlapic_set_tmr_level
	.p2align	2
_vlapic_set_tmr_level:                  ; @vlapic_set_tmr_level
	.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	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w4, #256
	cset	w0, lo
	sxtw	x1, w19
	bl	_KASSERT
Lloh0:
	adrp	x8, _APIC_DELMODE_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_DELMODE_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _APIC_DELMODE_LOWPRIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APIC_DELMODE_LOWPRIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w23
	ccmp	w8, w23, #4, ne
	b.ne	LBB0_4
; %bb.1:
	cmp	w8, w23
	cset	w4, eq
	ldr	w0, [x20, #4]
	add	x1, sp, #12
	mov	x2, x22
	mov	x3, x21
	mov	w5, #0
	bl	_vlapic_calcdest
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_CPU_ISSET
	cbz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_VLAPIC_CTR1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_vlapic_set_tmr
LBB0_3:
	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
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	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
	b	_VLAPIC_CTR1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_DELMODE_FIXED,4,2         ; @APIC_DELMODE_FIXED
	.comm	_APIC_DELMODE_LOWPRIO,4,2       ; @APIC_DELMODE_LOWPRIO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring level trigger-mode for delivery-mode %d"

l_.str.2:                               ; @.str.2
	.asciz	"vector %d set to level-triggered"

.subsections_via_symbols
