	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_cmd_eval_ctx
_pci_xhci_cmd_eval_ctx:                 ## @pci_xhci_cmd_eval_ctx
	.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	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdx), %esi
	andl	$-16, %esi
	callq	_XHCI_GADDR
	movq	%rax, %rbx
	movq	40(%rax), %r13
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movslq	24(%r13), %rdi
	callq	_DPRINTF
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	movq	_XHCI_TRB_ERROR_TRB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_1:
	testb	$3, 8(%rbx)
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pci_xhci_get_dev_ctx
	movq	%rax, %r15
	movslq	(%rax), %rdi
	callq	_DPRINTF
	movl	8(%rbx), %eax
	testb	$1, %al
	je	LBB0_5
## %bb.4:
	movq	16(%r15), %rdi
	movq	24(%rbx), %rsi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	callq	_FIELD_COPY
	movq	%rax, 16(%r15)
	movq	8(%r15), %rdi
	movq	16(%rbx), %rsi
	movl	$1023, %edx                     ## imm = 0x3FF
	movl	$22, %ecx
	callq	_FIELD_COPY
	movq	%rax, 8(%r15)
	movl	8(%rbx), %eax
LBB0_5:
	testb	$2, %al
	je	LBB0_7
## %bb.6:
	movq	32(%r15), %rax
	movq	32(%rax), %rdi
	movq	32(%r13), %rsi
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$16, %ecx
	callq	_FIELD_COPY
	movq	32(%r15), %r13
	movq	%rax, 32(%r13)
LBB0_7:
	movslq	24(%r13), %rdi
	callq	_DPRINTF
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ## @XHCI_TRB_ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"pci_xhci: eval ctx, input ctl invalid\r\n"

	.comm	_XHCI_TRB_ERROR_TRB,4,2         ## @XHCI_TRB_ERROR_TRB
	.no_dead_strip	_pci_xhci_cmd_eval_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_cmd_eval_ctx
_pci_xhci_cmd_eval_ctx:                 ; @pci_xhci_cmd_eval_ctx
	.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	x21, x1
	mov	x22, x0
	ldr	w8, [x2]
	and	w1, w8, #0xfffffff0
	bl	_XHCI_GADDR
	mov	x20, x0
	ldr	x23, [x0, #40]
Lloh0:
	adrp	x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldrsw	x0, [x23, #24]
	bl	_DPRINTF
	ldr	x8, [x20]
	cbz	x8, LBB0_2
LBB0_1:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
Lloh5:
	adrp	x8, _XHCI_TRB_ERROR_TRB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XHCI_TRB_ERROR_TRB@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_8
LBB0_2:
	ldrb	w8, [x20, #8]
	tst	w8, #0x3
	b.eq	LBB0_1
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	bl	_pci_xhci_get_dev_ctx
	mov	x21, x0
	ldrsw	x0, [x0]
	bl	_DPRINTF
	ldr	w8, [x20, #8]
	tbz	w8, #0, LBB0_5
; %bb.4:
	ldr	x0, [x21, #16]
	ldr	x1, [x20, #24]
	mov	w2, #65535
	mov	w3, #0
	bl	_FIELD_COPY
	str	x0, [x21, #16]
	ldr	x0, [x21, #8]
	ldr	x1, [x20, #16]
	mov	w2, #1023
	mov	w3, #22
	bl	_FIELD_COPY
	str	x0, [x21, #8]
	ldr	w8, [x20, #8]
LBB0_5:
	tbz	w8, #1, LBB0_7
; %bb.6:
	ldr	x8, [x21, #32]
	ldr	x0, [x8, #32]
	ldr	x1, [x23, #32]
	mov	w2, #65535
	mov	w3, #16
	bl	_FIELD_COPY
	ldr	x23, [x21, #32]
	str	x0, [x23, #32]
LBB0_7:
	ldrsw	x0, [x23, #24]
	bl	_DPRINTF
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ; @XHCI_TRB_ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"pci_xhci: eval ctx, input ctl invalid\r\n"

	.comm	_XHCI_TRB_ERROR_TRB,4,2         ; @XHCI_TRB_ERROR_TRB
	.no_dead_strip	_pci_xhci_cmd_eval_ctx
.subsections_via_symbols
