	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_open
_i2400m_open:                           ## @i2400m_open
	.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
	movq	%rdi, %r14
	callq	_net_dev_to_i2400m
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2400m_dev
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rax, %rsi
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_d_fnstart
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$0, 8(%r12)
	cmovnel	%ecx, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	movq	%r14, %rcx
	movq	%r12, %r8
	movl	%ebx, %r9d
	callq	_d_fnend
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(net_dev %p [i2400m %p])\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"(net_dev %p [i2400m %p]) = %d\n"

	.no_dead_strip	_i2400m_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_open
_i2400m_open:                           ; @i2400m_open
	.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
	mov	x19, x0
	bl	_net_dev_to_i2400m
	mov	x20, x0
	bl	_i2400m_dev
	mov	x21, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_d_fnstart
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _EBUSY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w22, wzr, w9, ne
	mov	x0, x20
	bl	_mutex_unlock
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	mov	x5, x22
	bl	_d_fnend
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(net_dev %p [i2400m %p])\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"(net_dev %p [i2400m %p]) = %d\n"

	.no_dead_strip	_i2400m_open
.subsections_via_symbols
