	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_hw_enable
_prism2_hw_enable:                      ## @prism2_hw_enable
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	(%rax), %rbx
	movl	(%rbx), %r15d
	movq	_HFA384X_CMDCODE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hfa384x_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_printk
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 8(%rbx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_hfa384x_enable_interrupts
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_prism2_reset_port
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HFA384X_CMDCODE_ENABLE,4,2     ## @HFA384X_CMDCODE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: MAC port 0 enabling failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: MAC port 0 resetting failed\n"

	.no_dead_strip	_prism2_hw_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function prism2_hw_enable
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_prism2_hw_enable:                      ; @prism2_hw_enable
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x22, [x0]
	ldr	w21, [x22]
Lloh0:
	adrp	x8, _HFA384X_CMDCODE_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFA384X_CMDCODE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_hfa384x_cmd
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_printk
	mov	w0, #1
LBB0_3:
	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
LBB0_4:
	str	xzr, [x22, #8]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
	mov	x0, x19
	bl	_hfa384x_enable_interrupts
	cbz	w20, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_prism2_reset_port
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	cbz	w21, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_3
; %bb.9:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_10:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HFA384X_CMDCODE_ENABLE,4,2     ; @HFA384X_CMDCODE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: MAC port 0 enabling failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: MAC port 0 resetting failed\n"

	.no_dead_strip	_prism2_hw_enable
.subsections_via_symbols
