	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_ioctl
_bnxt_ioctl:                            ## @bnxt_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, %r15
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_9
## %bb.3:
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
LBB0_4:
	movl	$0, -36(%rbp)
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	callq	_bnxt_hwrm_port_phy_read
	movl	-36(%rbp), %ecx
	movl	%ecx, 12(%r15)
	jmp	LBB0_11
LBB0_7:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	8(%r15), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_hwrm_port_phy_write       ## TAILCALL
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_bnxt_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_ioctl
_bnxt_ioctl:                            ; @bnxt_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_6
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w22, #130
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x20]
	str	w8, [x19, #8]
LBB0_4:
	str	wzr, [sp, #12]
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.5:
	ldp	w2, w1, [x19, #4]
	add	x3, sp, #12
	mov	x0, x20
	bl	_bnxt_hwrm_port_phy_read
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	b	LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.7:
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	mov	x0, x20
	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
	b	_bnxt_hwrm_port_phy_write
LBB0_8:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_bnxt_ioctl
.subsections_via_symbols
