	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_convert_trap_info
_xen_convert_trap_info:                 ## @xen_convert_trap_info
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	incl	%ebx
	xorl	%edi, %edi
	cmpl	$1028, %ebx                     ## imm = 0x404
	setae	%dil
	callq	_BUG_ON
	xorl	%r13d, %r13d
	cmpl	$4, %ebx
	jb	LBB0_4
## %bb.1:
	sarl	$2, %ebx
	cmpl	$2, %ebx
	movl	$1, %eax
	cmovael	%ebx, %eax
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	movl	%r14d, %eax
	leaq	(%r12,%rax,8), %rdx
	movl	%r13d, %edi
	callq	_cvt_gate_to_trap
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	incl	%r13d
	addq	$4, %rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.3:
	movl	%r14d, %r13d
LBB0_4:
	movq	$0, (%r12,%r13,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xen_convert_trap_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_convert_trap_info
_xen_convert_trap_info:                 ; @xen_convert_trap_info
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	add	w24, w8, #1
	cmp	w24, #1027
	cset	w0, hi
	bl	_BUG_ON
	cmp	w24, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_4
LBB0_2:
	mov	x23, #0
	mov	w21, #0
	mov	w22, #0
	asr	w8, w24, #2
	cmp	w8, #1
	csinc	w8, w8, wzr, hi
	lsl	x24, x8, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x23
	add	x2, x19, w22, uxtw #3
	mov	x0, x21
	bl	_cvt_gate_to_trap
	cmp	x0, #0
	cinc	w22, w22, ne
	add	w21, w21, #1
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_3
LBB0_4:
	str	xzr, [x19, x22, lsl #3]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xen_convert_trap_info
.subsections_via_symbols
