	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxbf_tmfifo_probe
_mlxbf_tmfifo_probe:                    ## @mlxbf_tmfifo_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	40(%rax), %rdi
	callq	_spin_lock_init
	leaq	36(%r12), %rdi
	movq	_mlxbf_tmfifo_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	32(%r12), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	24(%r12), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r12), %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_mlxbf_tmfifo_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_MLXBF_TM_MAX_IRQ@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	%r15d, (%rax,%r13)
	movq	%r12, 16(%rax,%r13)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_platform_get_irq
	movq	8(%r12), %r9
	movq	%rax, 8(%r9,%r13)
	addq	%r13, %r9
	movq	_mlxbf_tmfifo_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	leaq	L_.str(%rip), %r8
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movq	_MLXBF_TM_MAX_IRQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r13
	cmpq	%rax, %r15
	jl	LBB0_9
LBB0_12:
	movq	%r12, %rdi
	callq	_mlxbf_tmfifo_set_threshold
	movq	_VIRTIO_ID_CONSOLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlxbf_tmfifo_create_vdev
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	leaq	-56(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_VIRTIO_NET_S_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	-56(%rbp), %edi
	callq	_mlxbf_tmfifo_get_cfg_mac
	movq	_VIRTIO_ID_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLXBF_TMFIFO_NET_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	movl	$12, %r9d
	callq	_mlxbf_tmfifo_create_vdev
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:
	movq	%r12, %rdi
	callq	_mlxbf_tmfifo_cleanup
	movl	%r15d, %ebx
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	8(%r12), %rax
	movq	$0, 8(%rax,%r13)
	jmp	LBB0_16
LBB0_14:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_MLXBF_TMFIFO_TIMER_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mod_timer
	movl	$1, (%r12)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxbf_tmfifo_work_handler,4,2  ## @mlxbf_tmfifo_work_handler
	.comm	_mlxbf_tmfifo_timer,4,2         ## @mlxbf_tmfifo_timer
	.comm	_MLXBF_TM_MAX_IRQ,4,2           ## @MLXBF_TM_MAX_IRQ
	.comm	_mlxbf_tmfifo_irq_handler,4,2   ## @mlxbf_tmfifo_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tmfifo"

L_.str.1:                               ## @.str.1
	.asciz	"devm_request_irq failed\n"

	.comm	_VIRTIO_ID_CONSOLE,4,2          ## @VIRTIO_ID_CONSOLE
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_VIRTIO_NET_S_LINK_UP,4,2       ## @VIRTIO_NET_S_LINK_UP
	.comm	_VIRTIO_ID_NET,4,2              ## @VIRTIO_ID_NET
	.comm	_MLXBF_TMFIFO_NET_FEATURES,4,2  ## @MLXBF_TMFIFO_NET_FEATURES
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MLXBF_TMFIFO_TIMER_INTERVAL,8,3 ## @MLXBF_TMFIFO_TIMER_INTERVAL
	.no_dead_strip	_mlxbf_tmfifo_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxbf_tmfifo_probe
_mlxbf_tmfifo_probe:                    ; @mlxbf_tmfifo_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #40
	bl	_spin_lock_init
	add	x0, x19, #36
Lloh3:
	adrp	x8, _mlxbf_tmfifo_work_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxbf_tmfifo_work_handler@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #32
	bl	_mutex_init
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #24]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x19, #16]
LBB0_7:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x21, x19, #4
Lloh9:
	adrp	x8, _mlxbf_tmfifo_timer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mlxbf_tmfifo_timer@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_timer_setup
Lloh12:
	adrp	x26, _MLXBF_TM_MAX_IRQ@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MLXBF_TM_MAX_IRQ@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x25, #0
	mov	x22, #0
Lloh14:
	adrp	x27, _mlxbf_tmfifo_irq_handler@GOTPAGE
Lloh15:
	ldr	x27, [x27, _mlxbf_tmfifo_irq_handler@GOTPAGEOFF]
Lloh16:
	adrp	x24, l_.str@PAGE
Lloh17:
	add	x24, x24, l_.str@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	w22, [x8]
	str	x19, [x8, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_platform_get_irq
	mov	x1, x0
	ldr	x8, [x19, #8]
	add	x5, x8, x25
	str	x0, [x5, #8]
	ldr	w2, [x27]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x24
	bl	_devm_request_irq
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x26]
	add	x25, x25, #24
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_12:
	mov	x0, x19
	bl	_mlxbf_tmfifo_set_threshold
Lloh18:
	adrp	x8, _VIRTIO_ID_CONSOLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIRTIO_ID_CONSOLE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_mlxbf_tmfifo_create_vdev
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh21:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _VIRTIO_NET_S_LINK_UP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VIRTIO_NET_S_LINK_UP@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #4]
	ldr	w0, [sp]
	bl	_mlxbf_tmfifo_get_cfg_mac
Lloh27:
	adrp	x8, _VIRTIO_ID_NET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VIRTIO_ID_NET@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _MLXBF_TMFIFO_NET_FEATURES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MLXBF_TMFIFO_NET_FEATURES@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x4, sp
	mov	x0, x20
	mov	x1, x19
	mov	w5, #12
	bl	_mlxbf_tmfifo_create_vdev
	mov	x23, x0
	cbz	w0, LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_mlxbf_tmfifo_cleanup
	b	LBB0_4
LBB0_15:
	mov	x23, x0
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	xzr, [x8, #8]
	b	LBB0_4
LBB0_16:
Lloh35:
	adrp	x8, _jiffies@GOTPAGE
Lloh36:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	adrp	x9, _MLXBF_TMFIFO_TIMER_INTERVAL@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MLXBF_TMFIFO_TIMER_INTERVAL@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_mod_timer
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxbf_tmfifo_work_handler,4,2  ; @mlxbf_tmfifo_work_handler
	.comm	_mlxbf_tmfifo_timer,4,2         ; @mlxbf_tmfifo_timer
	.comm	_MLXBF_TM_MAX_IRQ,4,2           ; @MLXBF_TM_MAX_IRQ
	.comm	_mlxbf_tmfifo_irq_handler,4,2   ; @mlxbf_tmfifo_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tmfifo"

l_.str.1:                               ; @.str.1
	.asciz	"devm_request_irq failed\n"

	.comm	_VIRTIO_ID_CONSOLE,4,2          ; @VIRTIO_ID_CONSOLE
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_VIRTIO_NET_S_LINK_UP,4,2       ; @VIRTIO_NET_S_LINK_UP
	.comm	_VIRTIO_ID_NET,4,2              ; @VIRTIO_ID_NET
	.comm	_MLXBF_TMFIFO_NET_FEATURES,4,2  ; @MLXBF_TMFIFO_NET_FEATURES
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MLXBF_TMFIFO_TIMER_INTERVAL,8,3 ; @MLXBF_TMFIFO_TIMER_INTERVAL
	.no_dead_strip	_mlxbf_tmfifo_probe
.subsections_via_symbols
