	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_probe
_pk_probe:                              ## @pk_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_to_usb_interface
	movq	(%rax), %rax
	movzwl	(%rax), %r13d
	movq	(%rbx), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, 24(%rax)
	movl	(%r15), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, 16(%rax)
	movq	%rax, 8(%r14)
	movw	%r13w, (%rax)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hid_set_drvdata
	movq	%r12, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hid_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hid_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_PK_QUIRK_NOGET@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_HID_QUIRK_NOGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_9:
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	callq	_hid_err
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
LBB0_14:
	movq	%r14, %rdi
	callq	_kfree
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_pcmidi_snd_initialise
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_15
## %bb.12:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_hid_hw_stop
	movl	%r13d, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't alloc descriptor\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"hid parse failed\n"

	.comm	_PK_QUIRK_NOGET,8,3             ## @PK_QUIRK_NOGET
	.comm	_HID_QUIRK_NOGET,4,2            ## @HID_QUIRK_NOGET
	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"hw start failed\n"

	.no_dead_strip	_pk_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_probe
_pk_probe:                              ; @pk_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_usb_interface
	ldr	x8, [x0]
	ldrh	w22, [x8]
	ldr	x23, [x19]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #24]
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	str	x19, [x0, #16]
	str	x0, [x19, #8]
	strh	w22, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_hid_set_drvdata
	mov	x0, x20
	bl	_hid_parse
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_err
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_6:
Lloh14:
	adrp	x8, _PK_QUIRK_NOGET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PK_QUIRK_NOGET@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x23
	b.eq	LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _HID_QUIRK_NOGET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HID_QUIRK_NOGET@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_8:
Lloh20:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hid_hw_start
	cbz	w0, LBB0_14
; %bb.9:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_hid_err
LBB0_11:
	mov	x0, x21
	bl	_kfree
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x21
	bl	_pcmidi_snd_initialise
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	w22, #0
	b	LBB0_13
LBB0_16:
	mov	x22, x0
	mov	x0, x20
	bl	_hid_hw_stop
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't alloc descriptor\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"hid parse failed\n"

	.comm	_PK_QUIRK_NOGET,8,3             ; @PK_QUIRK_NOGET
	.comm	_HID_QUIRK_NOGET,4,2            ; @HID_QUIRK_NOGET
	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"hw start failed\n"

	.no_dead_strip	_pk_probe
.subsections_via_symbols
