	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_container_id_descriptor ## -- Begin function libusb_get_container_id_descriptor
	.p2align	4, 0x90
_libusb_get_container_id_descriptor:    ## @libusb_get_container_id_descriptor
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.2:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_LIBUSB_BT_CONTAINER_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_LIBUSB_BT_CONTAINER_ID_SIZE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jge	LBB0_8
## %bb.4:
	movq	_LIBUSB_ERROR_IO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_LIBUSB_ERROR_INVALID_PARAM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	%rax, 24(%r15)
	movl	24(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	16(%rbx), %rsi
	movl	(%rsi), %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %edi
	addq	$4, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_10:
	movq	_LIBUSB_ERROR_NO_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB_BT_CONTAINER_ID,8,3     ## @LIBUSB_BT_CONTAINER_ID
	.comm	_LIBUSB_ERROR_INVALID_PARAM,4,2 ## @LIBUSB_ERROR_INVALID_PARAM
	.comm	_LIBUSB_BT_CONTAINER_ID_SIZE,8,3 ## @LIBUSB_BT_CONTAINER_ID_SIZE
	.comm	_LIBUSB_ERROR_IO,4,2            ## @LIBUSB_ERROR_IO
	.comm	_LIBUSB_ERROR_NO_MEM,4,2        ## @LIBUSB_ERROR_NO_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_container_id_descriptor ; -- Begin function libusb_get_container_id_descriptor
	.p2align	2
_libusb_get_container_id_descriptor:    ; @libusb_get_container_id_descriptor
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_5
; %bb.2:
	mov	x20, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _LIBUSB_BT_CONTAINER_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIBUSB_BT_CONTAINER_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x22, _LIBUSB_BT_CONTAINER_ID_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _LIBUSB_BT_CONTAINER_ID_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _LIBUSB_ERROR_IO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIBUSB_ERROR_IO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _LIBUSB_ERROR_INVALID_PARAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LIBUSB_ERROR_INVALID_PARAM@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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
LBB0_8:
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	x8, [x22]
	str	x8, [x0, #24]
	ldr	w8, [x20, #24]
	str	w8, [x0, #16]
	ldr	x8, [x20]
	str	x8, [x0]
	ldr	x1, [x20, #16]
	ldr	w8, [x1], #4
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_7
LBB0_10:
Lloh9:
	adrp	x8, _LIBUSB_ERROR_NO_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIBUSB_ERROR_NO_MEM@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB_BT_CONTAINER_ID,8,3     ; @LIBUSB_BT_CONTAINER_ID
	.comm	_LIBUSB_ERROR_INVALID_PARAM,4,2 ; @LIBUSB_ERROR_INVALID_PARAM
	.comm	_LIBUSB_BT_CONTAINER_ID_SIZE,8,3 ; @LIBUSB_BT_CONTAINER_ID_SIZE
	.comm	_LIBUSB_ERROR_IO,4,2            ; @LIBUSB_ERROR_IO
	.comm	_LIBUSB_ERROR_NO_MEM,4,2        ; @LIBUSB_ERROR_NO_MEM
.subsections_via_symbols
