	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	cmpl	$2, %edi
	jl	LBB0_7
## %bb.1:
	movq	8(%rsi), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movl	%eax, %r12d
	movq	_USBDEVFS_DISCONNECT@GOTPCREL(%rip), %r13
	movq	_USBDEVFS_IOCTL@GOTPCREL(%rip), %r15
	leaq	-64(%rbp), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	$255, %ebx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -64(%rbp)
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	(%r15), %esi
	movl	%r12d, %edi
	movq	%r14, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_5
LBB0_7:
	movq	(%rsi), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movl	$1, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to open file"

	.comm	_USBDEVFS_DISCONNECT,4,2        ## @USBDEVFS_DISCONNECT
	.comm	_USBDEVFS_IOCTL,4,2             ## @USBDEVFS_IOCTL
L_.str.1:                               ## @.str.1
	.asciz	"un claimed interface %d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"usage: %s /dev/bus/usb/BUS/DEVICE\n"

L_str:                                  ## @str
	.asciz	"Release all interfaces of this usb device for usage in virtualisation"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.1:
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x19, x0
	mov	w21, #0
Lloh3:
	adrp	x22, _USBDEVFS_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _USBDEVFS_DISCONNECT@GOTPAGEOFF]
Lloh5:
	adrp	x23, _USBDEVFS_IOCTL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _USBDEVFS_IOCTL@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w21, #255
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp, #24]
	ldr	w8, [x22]
	str	w8, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w1, [x23]
	add	x2, sp, #24
	mov	x0, x19
	bl	_ioctl
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x21, x0, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_3
LBB0_6:
	ldr	x8, [x1]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to open file"

	.comm	_USBDEVFS_DISCONNECT,4,2        ; @USBDEVFS_DISCONNECT
	.comm	_USBDEVFS_IOCTL,4,2             ; @USBDEVFS_IOCTL
l_.str.1:                               ; @.str.1
	.asciz	"un claimed interface %d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"usage: %s /dev/bus/usb/BUS/DEVICE\n"

l_str:                                  ; @str
	.asciz	"Release all interfaces of this usb device for usage in virtualisation"

.subsections_via_symbols
