	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_set_reg_mask            ## -- Begin function tm6000_set_reg_mask
	.p2align	4, 0x90
_tm6000_set_reg_mask:                   ## @tm6000_set_reg_mask
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$1, (%rsp)
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r9
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_tm6000_read_write_usb
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	-48(%rbp), %eax
	xorl	%eax, %ebx
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	xorl	%eax, %ebx
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.2:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_tm6000_read_write_usb
LBB0_3:
	movl	%eax, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_set_reg_mask            ; -- Begin function tm6000_set_reg_mask
	.p2align	2
_tm6000_set_reg_mask:                   ; @tm6000_set_reg_mask
	.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	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w9, w8
	add	x5, sp, #12
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	w6, #1
	bl	_tm6000_read_write_usb
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	bic	w9, w8, w22
	and	w10, w22, w23
	orr	w4, w9, w10
	cmp	w4, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w1, w9, w8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	x5, #0
	mov	w6, #0
	bl	_tm6000_read_write_usb
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
.subsections_via_symbols
