	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_check_altsetting
_cxusb_medion_check_altsetting:         ## @cxusb_medion_check_altsetting
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %edx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %r8
	movq	_USB_ENDPOINT_NUMBER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rcx,8), %edi
	movl	%eax, %esi
	andl	%edi, %esi
	cmpl	$2, %esi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_USB_ENDPOINT_XFERTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	4(%r8,%rcx,8), %edx
	movq	_USB_ENDPOINT_XFER_ISOC@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %edx
	je	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_ENDPOINT_NUMBER_MASK,4,2   ## @USB_ENDPOINT_NUMBER_MASK
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_ENDPOINT_XFERTYPE_MASK,4,2 ## @USB_ENDPOINT_XFERTYPE_MASK
	.comm	_USB_ENDPOINT_XFER_ISOC,4,2     ## @USB_ENDPOINT_XFER_ISOC
	.no_dead_strip	_cxusb_medion_check_altsetting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_check_altsetting
_cxusb_medion_check_altsetting:         ; @cxusb_medion_check_altsetting
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _USB_ENDPOINT_NUMBER_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _USB_ENDPOINT_NUMBER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	x9, x9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-4]
	and	w12, w10, w11
	cmp	w12, #2
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _USB_ENDPOINT_XFER_ISOC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_ENDPOINT_XFER_ISOC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #1
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_ENDPOINT_NUMBER_MASK,4,2   ; @USB_ENDPOINT_NUMBER_MASK
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_ENDPOINT_XFERTYPE_MASK,4,2 ; @USB_ENDPOINT_XFERTYPE_MASK
	.comm	_USB_ENDPOINT_XFER_ISOC,4,2     ; @USB_ENDPOINT_XFER_ISOC
	.no_dead_strip	_cxusb_medion_check_altsetting
.subsections_via_symbols
