	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_load_one
_mlx5_load_one:                         ## @mlx5_load_one
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mlx5_read_embedded_cpu
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_MLX5_INTERFACE_STATE_UP@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_warn
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_2:
	movq	_MLX5_DEVICE_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mlx5_function_setup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_mlx5_init_once
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	callq	_mlx5_load
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_mlx5_cleanup_once
LBB0_14:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mlx5_function_teardown
	movq	_MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_15:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_mlx5_device_registered
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	callq	_mlx5_attach_device
LBB0_9:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_set_bit
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_10:
	callq	_mlx5_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	movq	%rbx, %rdi
	callq	_mlx5_unload
	testl	%r14d, %r14d
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_INTERFACE_STATE_UP,4,2    ## @MLX5_INTERFACE_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interface is up, NOP\n"

	.comm	_MLX5_DEVICE_STATE_UP,4,2       ## @MLX5_DEVICE_STATE_UP
L_.str.1:                               ## @.str.1
	.asciz	"sw objs init failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"register device failed %d\n"

	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,4,2 ## @MLX5_DEVICE_STATE_INTERNAL_ERROR
	.no_dead_strip	_mlx5_load_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_load_one
_mlx5_load_one:                         ; @mlx5_load_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_mlx5_read_embedded_cpu
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _MLX5_INTERFACE_STATE_UP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MLX5_INTERFACE_STATE_UP@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x19, #8
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_warn
	mov	w21, #0
	b	LBB0_10
LBB0_2:
Lloh4:
	adrp	x8, _MLX5_DEVICE_STATE_UP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_DEVICE_STATE_UP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_function_setup
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.3:
	cbz	w20, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_mlx5_init_once
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_mlx5_load
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.7:
	cbz	w20, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_mlx5_cleanup_once
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_function_teardown
Lloh9:
	adrp	x8, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x0, x19
	bl	_mlx5_device_registered
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_mlx5_attach_device
LBB0_13:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_set_bit
	mov	w21, #0
	b	LBB0_10
LBB0_14:
	mov	x0, x19
	bl	_mlx5_register_device
	cbz	w0, LBB0_13
; %bb.15:
	mov	x21, x0
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	mov	x0, x19
	bl	_mlx5_unload
	cbnz	w20, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_INTERFACE_STATE_UP,4,2    ; @MLX5_INTERFACE_STATE_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interface is up, NOP\n"

	.comm	_MLX5_DEVICE_STATE_UP,4,2       ; @MLX5_DEVICE_STATE_UP
l_.str.1:                               ; @.str.1
	.asciz	"sw objs init failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"register device failed %d\n"

	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,4,2 ; @MLX5_DEVICE_STATE_INTERNAL_ERROR
	.no_dead_strip	_mlx5_load_one
.subsections_via_symbols
