	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __getDeviceId
___getDeviceId:                         ## @__getDeviceId
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	movl	%edi, %esi
	movq	___ntd_ohci_initflag@GOTPCREL(%rip), %rcx
	movq	_USB_OH1_DEVICE_ID@GOTPCREL(%rip), %rax
	cmpl	$1, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	___ntd_ohci@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	cmpl	$1, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	_USB_OH0_DEVICE_ID@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	movq	___usbdev@GOTPCREL(%rip), %rcx
	callq	_USB_OpenDevice
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	popq	%rbp
	retq
LBB0_5:
	movq	___usbdev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___ntd_usb_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___ntd_ohci_initflag,4,2        ## @__ntd_ohci_initflag
	.comm	___ntd_ohci,4,2                 ## @__ntd_ohci
	.comm	_USB_OH0_DEVICE_ID,4,2          ## @USB_OH0_DEVICE_ID
	.comm	___usbdev,4,2                   ## @__usbdev
	.comm	_USB_OH1_DEVICE_ID,4,2          ## @USB_OH1_DEVICE_ID
	.comm	___ntd_usb_fd,4,2               ## @__ntd_usb_fd
	.no_dead_strip	___getDeviceId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __getDeviceId
___getDeviceId:                         ; @__getDeviceId
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___ntd_ohci_initflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___ntd_ohci_initflag@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, ___ntd_ohci@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___ntd_ohci@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _USB_OH1_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_OH1_DEVICE_ID@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _USB_OH0_DEVICE_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_OH0_DEVICE_ID@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
Lloh10:
	adrp	x3, ___usbdev@GOTPAGE
Lloh11:
	ldr	x3, [x3, ___usbdev@GOTPAGEOFF]
	bl	_USB_OpenDevice
	cbz	x0, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, #0
Lloh12:
	adrp	x8, ___usbdev@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___usbdev@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, ___ntd_usb_fd@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___ntd_usb_fd@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	___ntd_ohci_initflag,4,2        ; @__ntd_ohci_initflag
	.comm	___ntd_ohci,4,2                 ; @__ntd_ohci
	.comm	_USB_OH0_DEVICE_ID,4,2          ; @USB_OH0_DEVICE_ID
	.comm	___usbdev,4,2                   ; @__usbdev
	.comm	_USB_OH1_DEVICE_ID,4,2          ; @USB_OH1_DEVICE_ID
	.comm	___ntd_usb_fd,4,2               ; @__ntd_usb_fd
	.no_dead_strip	___getDeviceId
.subsections_via_symbols
