	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_hw_config
_prism2_hw_config:                      ## @prism2_hw_config
	.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, %r15
	callq	_netdev_priv
	movq	(%rax), %r12
	movl	$1, %ebx
	cmpq	$0, 24(%r12)
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_prism2_hw_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r12)
	sete	%bl
	jmp	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_prism2_hw_init2
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	$0, 12(%r12)
	je	LBB0_6
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	cmpl	$2, %r14d
	jne	LBB0_3
## %bb.8:
	cmpq	$0, (%r12)
	jle	LBB0_3
LBB0_9:
	cmpl	$0, 8(%r12)
	jne	LBB0_11
## %bb.10:
	movq	_PRISM2_CALLBACK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_prism2_callback
LBB0_11:
	movl	$1, 8(%r12)
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prism2_hw_enable               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRISM2_CALLBACK_ENABLE,4,2     ## @PRISM2_CALLBACK_ENABLE
	.no_dead_strip	_prism2_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_hw_config
_prism2_hw_config:                      ; @prism2_hw_config
	.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, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_prism2_hw_init
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w0, eq
LBB0_4:
	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_5:
	mov	x0, x20
	mov	x1, x19
	bl	_prism2_hw_init2
	cbnz	x0, LBB0_1
; %bb.6:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_4
LBB0_8:
	cbz	w19, LBB0_11
; %bb.9:
	cmp	w19, #2
	b.ne	LBB0_7
; %bb.10:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_7
LBB0_11:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_13
; %bb.12:
Lloh0:
	adrp	x8, _PRISM2_CALLBACK_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRISM2_CALLBACK_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_prism2_callback
LBB0_13:
	mov	w8, #1
	str	w8, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_prism2_hw_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PRISM2_CALLBACK_ENABLE,4,2     ; @PRISM2_CALLBACK_ENABLE
	.no_dead_strip	_prism2_hw_config
.subsections_via_symbols
