	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5974_probe
_bcm5974_probe:                         ## @bcm5974_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	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_interface_to_usbdev
	movq	%rax, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_bcm5974_get_config
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movq	%r14, 56(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 88(%r13)
	movq	%r15, 72(%r13)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	%xmm0, 24(%r13)
	movups	%xmm1, 40(%r13)
	movq	%r13, %rdi
	addq	$84, %rdi
	callq	_mutex_init
	movq	(%rbx), %rax
	movq	_TYPE1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	movq	56(%r13), %rdi
	movl	32(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_usb_alloc_coherent
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	8(%r13), %rax
LBB0_11:
	movq	56(%r13), %rdi
	movl	36(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rcx
	callq	_usb_alloc_coherent
	movq	%rax, 64(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	(%r13), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.13:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movq	16(%r13), %rcx
	movl	32(%r13), %r8d
	movq	_bcm5974_irq_button@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	pushq	$1
	pushq	%r13
	callq	_usb_fill_int_urb
	addq	$16, %rsp
LBB0_14:
	movq	8(%r13), %r12
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movq	64(%r13), %rcx
	movl	36(%r13), %r8d
	movq	_bcm5974_irq_trackpad@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	pushq	$1
	pushq	%r13
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	80(%r13), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	80(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r15)
	movl	80(%r13), %eax
	movl	%eax, 28(%r15)
	movq	56(%r13), %rdi
	movq	%r15, %rsi
	addq	$24, %rsi
	callq	_usb_to_input_id
	movl	16(%rbx), %eax
	movl	%eax, 24(%r15)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 16(%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_input_set_drvdata
	movq	_bcm5974_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_bcm5974_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_setup_events_to_report
	movq	72(%r13), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r12d
	movq	56(%r13), %rdi
	movl	36(%r13), %esi
	movq	64(%r13), %rdx
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	callq	_usb_free_coherent
LBB0_17:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	56(%r13), %rdi
	movl	32(%r13), %esi
	movq	16(%r13), %rdx
	movl	(%rax), %ecx
	callq	_usb_free_coherent
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%r13), %rdi
	callq	_usb_free_urb
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	(%r13), %rdi
	callq	_usb_free_urb
	jmp	LBB0_21
LBB0_5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_21:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	callq	_input_free_device
	movq	%r13, %rdi
	callq	_kfree
LBB0_22:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	xorl	%r12d, %r12d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_TYPE1,8,3                      ## @TYPE1
	.comm	_bcm5974_irq_button,4,2         ## @bcm5974_irq_button
	.comm	_bcm5974_irq_trackpad,4,2       ## @bcm5974_irq_trackpad
L_.str.1:                               ## @.str.1
	.asciz	"/input0"

L_.str.2:                               ## @.str.2
	.asciz	"bcm5974"

	.comm	_bcm5974_open,4,2               ## @bcm5974_open
	.comm	_bcm5974_close,4,2              ## @bcm5974_close
	.no_dead_strip	_bcm5974_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5974_probe
_bcm5974_probe:                         ; @bcm5974_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_interface_to_usbdev
	mov	x24, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	bl	_bcm5974_get_config
	mov	x23, x0
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #96
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_18
LBB0_2:
	str	x24, [x20, #56]
	str	x19, [x20, #88]
	str	x21, [x20, #72]
	ldp	q0, q1, [x23]
	stur	q1, [x20, #40]
	stur	q0, [x20, #24]
	add	x0, x20, #84
	bl	_mutex_init
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _TYPE1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TYPE1@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x20]
	cbz	x0, LBB0_18
LBB0_4:
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x20, #8]
	cbz	x0, LBB0_17
; %bb.5:
	ldr	x3, [x20]
	cbz	x3, LBB0_8
; %bb.6:
	ldr	x0, [x20, #56]
	ldr	w1, [x20, #32]
	ldr	w2, [x25]
	bl	_usb_alloc_coherent
	str	x0, [x20, #16]
	cbz	x0, LBB0_16
; %bb.7:
	ldr	x8, [x20, #8]
	b	LBB0_9
LBB0_8:
	mov	x8, x0
LBB0_9:
	ldr	x0, [x20, #56]
	ldr	w1, [x20, #36]
	ldr	w2, [x25]
	mov	x3, x8
	bl	_usb_alloc_coherent
	str	x0, [x20, #64]
	cbz	x0, LBB0_14
; %bb.10:
	ldr	x22, [x20]
	cbz	x22, LBB0_12
; %bb.11:
	ldr	w1, [x23, #24]
	mov	x0, x24
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	x3, [x20, #16]
	ldr	w4, [x20, #32]
Lloh10:
	adrp	x8, _bcm5974_irq_button@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bcm5974_irq_button@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	x6, x20
	mov	w7, #1
	bl	_usb_fill_int_urb
LBB0_12:
	ldr	x22, [x20, #8]
	ldr	w1, [x23, #20]
	mov	x0, x24
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	x3, [x20, #64]
	ldr	w4, [x20, #36]
Lloh13:
	adrp	x8, _bcm5974_irq_trackpad@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bcm5974_irq_trackpad@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	x6, x20
	mov	w7, #1
	bl	_usb_fill_int_urb
	ldr	w1, [x20, #80]
	mov	x0, x24
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x20, #80]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcat
Lloh18:
	adrp	x8, l_.str.2@PAGE
Lloh19:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x21]
	ldr	w8, [x20, #80]
	str	w8, [x21, #28]
	ldr	x0, [x20, #56]
	add	x1, x21, #24
	bl	_usb_to_input_id
	ldr	w8, [x23, #16]
	str	w8, [x21, #24]
	str	x19, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
Lloh20:
	adrp	x8, _bcm5974_open@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bcm5974_open@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _bcm5974_close@GOTPAGE
Lloh24:
	ldr	x9, [x9, _bcm5974_close@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_setup_events_to_report
	ldr	x0, [x20, #72]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_20
; %bb.13:
	ldr	w1, [x20, #36]
	ldp	x0, x2, [x20, #56]
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
	bl	_usb_free_coherent
LBB0_14:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x0, [x20, #56]
	ldr	w1, [x20, #32]
	ldr	x2, [x20, #16]
	ldr	w3, [x8]
	bl	_usb_free_coherent
LBB0_16:
	ldr	x0, [x20, #8]
	bl	_usb_free_urb
LBB0_17:
	ldr	x0, [x20]
	bl	_usb_free_urb
LBB0_18:
	mov	x0, x19
	mov	x1, #0
	bl	_usb_set_intfdata
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
	b	LBB0_19
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_TYPE1,8,3                      ; @TYPE1
	.comm	_bcm5974_irq_button,4,2         ; @bcm5974_irq_button
	.comm	_bcm5974_irq_trackpad,4,2       ; @bcm5974_irq_trackpad
l_.str.1:                               ; @.str.1
	.asciz	"/input0"

l_.str.2:                               ; @.str.2
	.asciz	"bcm5974"

	.comm	_bcm5974_open,4,2               ; @bcm5974_open
	.comm	_bcm5974_close,4,2              ; @bcm5974_close
	.no_dead_strip	_bcm5974_probe
.subsections_via_symbols
