	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_ioctl
_bnx2_ioctl:                            ## @bnx2_ioctl
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_if_mii
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_11
## %bb.3:
	movl	8(%r15), %eax
	movl	%eax, 12(%r14)
LBB0_4:
	movq	_BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	(%r14), %esi
	andl	$31, %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_bnx2_read_phy
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	-36(%rbp), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_13
LBB0_8:
	movq	_BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	(%r14), %esi
	movl	4(%r14), %edx
	andl	$31, %esi
	movq	%r15, %rdi
	callq	_bnx2_write_phy
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %eax
	jmp	LBB0_14
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ## @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_bnx2_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_ioctl
_bnx2_ioctl:                            ; @bnx2_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_if_mii
	mov	x19, x0
	mov	x0, x21
	bl	_netdev_priv
	mov	x20, x0
	cmp	w22, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w22, #130
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x20, #8]
	str	w8, [x19, #12]
LBB0_4:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_14
; %bb.6:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	w8, [x19]
	and	w1, w8, #0x1f
	add	x2, sp, #12
	mov	x0, x20
	bl	_bnx2_read_phy
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_8:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_14
; %bb.13:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_bh
	ldp	w8, w2, [x19]
	and	w1, w8, #0x1f
	mov	x0, x20
	bl	_bnx2_write_phy
	mov	x19, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x19
	b	LBB0_11
LBB0_14:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ; @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_bnx2_ioctl
.subsections_via_symbols
