	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_create_shared_int
_hso_create_shared_int:                 ## @hso_create_shared_int
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_USB_ENDPOINT_XFER_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hso_get_ep
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_3:
	movq	8(%rbx), %rdi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_usb_free_urb
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_USB_ENDPOINT_XFER_INT,4,2      ## @USB_ENDPOINT_XFER_INT
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find INT IN endpoint\n"

	.no_dead_strip	_hso_create_shared_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_create_shared_int
_hso_create_shared_int:                 ; @hso_create_shared_int
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _USB_ENDPOINT_XFER_INT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_ENDPOINT_XFER_INT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hso_get_ep
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.4:
	add	x0, x19, #16
	bl	_mutex_init
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_kfree
	ldr	w0, [x19]
	bl	_usb_free_urb
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_USB_ENDPOINT_XFER_INT,4,2      ; @USB_ENDPOINT_XFER_INT
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find INT IN endpoint\n"

	.no_dead_strip	_hso_create_shared_int
.subsections_via_symbols
