	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hifn_enable_crypto
_hifn_enable_crypto:                    ## @hifn_enable_crypto
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_pci2id@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movl	$16, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	-16(%rdi,%rbx), %rcx
	movq	(%r15), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rdi,%rbx), %rcx
	cmpq	8(%rax), %rcx
	jne	LBB0_4
## %bb.5:
	movq	(%rdi,%rbx), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:
	movq	_HIFN_1_DMA_CNFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_hifn_read_1
	movq	_HIFN_DMACNFG_UNLOCK@GOTPCREL(%rip), %rcx
	movq	_HIFN_DMACNFG_MSTRESET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HIFN_DMACNFG_DMARESET@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	_HIFN_DMACNFG_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_hifn_write_1
	movl	$1, %edi
	callq	_mdelay
	movq	_HIFN_1_UNLOCK_SECRET1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hifn_read_1
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_mdelay
	movq	_HIFN_1_UNLOCK_SECRET2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_hifn_write_1
	movl	$1, %edi
	callq	_mdelay
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%r14), %eax
	incb	%al
	movsbl	%al, %esi
	movl	%ebx, %edi
	callq	_hifn_next_signature
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_hifn_write_1
	movl	$1, %edi
	callq	_mdelay
	incq	%r14
	cmpq	$12, %r14
	jne	LBB0_8
## %bb.9:
	movq	_HIFN_1_DMA_CNFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_hifn_write_1
	movl	8(%r15), %r14d
	movq	(%r15), %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_10
LBB0_6:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci2id,8,3                     ## @pci2id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chip %s: Unknown card!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HIFN_1_DMA_CNFG,4,2            ## @HIFN_1_DMA_CNFG
	.comm	_HIFN_DMACNFG_UNLOCK,4,2        ## @HIFN_DMACNFG_UNLOCK
	.comm	_HIFN_DMACNFG_MSTRESET,4,2      ## @HIFN_DMACNFG_MSTRESET
	.comm	_HIFN_DMACNFG_DMARESET,4,2      ## @HIFN_DMACNFG_DMARESET
	.comm	_HIFN_DMACNFG_MODE,4,2          ## @HIFN_DMACNFG_MODE
	.comm	_HIFN_1_UNLOCK_SECRET1,4,2      ## @HIFN_1_UNLOCK_SECRET1
	.comm	_HIFN_1_UNLOCK_SECRET2,4,2      ## @HIFN_1_UNLOCK_SECRET2
L_.str.1:                               ## @.str.1
	.asciz	"Chip %s: %s.\n"

	.no_dead_strip	_hifn_enable_crypto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hifn_enable_crypto
_hifn_enable_crypto:                    ; @hifn_enable_crypto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, _pci2id@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pci2id@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #24
	cmp	x22, w0, sxtw
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x9, [x0, x21]
	ldr	x8, [x19]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x0, x21
	ldr	x10, [x9, #8]
	ldr	x8, [x8, #8]
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.5:
	ldr	x22, [x9, #16]
	cbz	x22, LBB0_9
; %bb.6:
Lloh2:
	adrp	x23, _HIFN_1_DMA_CNFG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HIFN_1_DMA_CNFG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_hifn_read_1
	mov	x20, x0
	ldr	w1, [x23]
Lloh4:
	adrp	x8, _HIFN_DMACNFG_UNLOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HIFN_DMACNFG_UNLOCK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _HIFN_DMACNFG_MSTRESET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HIFN_DMACNFG_MSTRESET@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _HIFN_DMACNFG_DMARESET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HIFN_DMACNFG_DMARESET@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _HIFN_DMACNFG_MODE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HIFN_DMACNFG_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_hifn_write_1
	mov	w0, #1
	bl	_mdelay
Lloh16:
	adrp	x8, _HIFN_1_UNLOCK_SECRET1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HIFN_1_UNLOCK_SECRET1@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hifn_read_1
	mov	x21, x0
	mov	w0, #1
	bl	_mdelay
Lloh19:
	adrp	x24, _HIFN_1_UNLOCK_SECRET2@GOTPAGE
Lloh20:
	ldr	x24, [x24, _HIFN_1_UNLOCK_SECRET2@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_hifn_write_1
	mov	w0, #1
	bl	_mdelay
	mov	x25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x25]
	add	w8, w8, #1
	sxtb	w1, w8
	mov	x0, x21
	bl	_hifn_next_signature
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_hifn_write_1
	mov	w0, #1
	bl	_mdelay
	add	x25, x25, #1
	cmp	x25, #12
	b.ne	LBB0_7
; %bb.8:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_hifn_write_1
	ldr	w20, [x19, #8]
	ldr	x0, [x19]
	bl	_pci_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	w1, [x19, #8]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_pci2id,8,3                     ; @pci2id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chip %s: Unknown card!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HIFN_1_DMA_CNFG,4,2            ; @HIFN_1_DMA_CNFG
	.comm	_HIFN_DMACNFG_UNLOCK,4,2        ; @HIFN_DMACNFG_UNLOCK
	.comm	_HIFN_DMACNFG_MSTRESET,4,2      ; @HIFN_DMACNFG_MSTRESET
	.comm	_HIFN_DMACNFG_DMARESET,4,2      ; @HIFN_DMACNFG_DMARESET
	.comm	_HIFN_DMACNFG_MODE,4,2          ; @HIFN_DMACNFG_MODE
	.comm	_HIFN_1_UNLOCK_SECRET1,4,2      ; @HIFN_1_UNLOCK_SECRET1
	.comm	_HIFN_1_UNLOCK_SECRET2,4,2      ; @HIFN_1_UNLOCK_SECRET2
l_.str.1:                               ; @.str.1
	.asciz	"Chip %s: %s.\n"

	.no_dead_strip	_hifn_enable_crypto
.subsections_via_symbols
