	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_register_netdev
_cnic_register_netdev:                  ## @cnic_register_netdev
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	8(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	_CNIC_DRV_STATE_REGD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%r15)
	jne	LBB0_6
## %bb.3:
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	*8(%r15)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_5:
	movl	16(%r15), %eax
	movl	%eax, (%r14)
	movq	_CNIC_DRV_STATE_NO_ISCSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%r15), %ecx
	cmovel	%eax, %edx
	movl	%edx, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CNIC_DRV_STATE_REGD,4,2        ## @CNIC_DRV_STATE_REGD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"register_cnic failed\n"

	.comm	_CNIC_DRV_STATE_NO_ISCSI,4,2    ## @CNIC_DRV_STATE_NO_ISCSI
	.no_dead_strip	_cnic_register_netdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_register_netdev
_cnic_register_netdev:                  ; @cnic_register_netdev
	.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
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	w9, [x21]
Lloh0:
	adrp	x10, _CNIC_DRV_STATE_REGD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CNIC_DRV_STATE_REGD@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	mov	x19, x0
	ldr	x9, [x21, #8]
	ldr	w0, [x0, #4]
	ldr	w1, [x8]
	mov	x2, x19
	blr	x9
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_6:
	ldr	w8, [x21, #16]
	str	w8, [x19]
	ldr	w9, [x21]
Lloh8:
	adrp	x10, _CNIC_DRV_STATE_NO_ISCSI@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CNIC_DRV_STATE_NO_ISCSI@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	csel	w8, w8, wzr, eq
	str	w8, [x19]
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CNIC_DRV_STATE_REGD,4,2        ; @CNIC_DRV_STATE_REGD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"register_cnic failed\n"

	.comm	_CNIC_DRV_STATE_NO_ISCSI,4,2    ; @CNIC_DRV_STATE_NO_ISCSI
	.no_dead_strip	_cnic_register_netdev
.subsections_via_symbols
