	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_mac_init_hw                 ## -- Begin function zd_mac_init_hw
	.p2align	4, 0x90
_zd_mac_init_hw:                        ## @zd_mac_init_hw
	.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
	movq	%rdi, %r14
	callq	_zd_hw_mac
	movq	%rax, %r15
	leaq	12(%rax), %r12
	movq	%r12, %rdi
	callq	_zd_chip_enable_int
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	callq	_zd_chip_init_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_irqs_disabled
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ZD_ASSERT
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_zd_read_regdomain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	-40(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_ENC_SNIFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_zd_set_encryption_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r15), %edi
	leaq	-34(%rbp), %rsi
	callq	_zd_reg2alpha2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	-34(%rbp), %rsi
	callq	_regulatory_hint
	movl	%eax, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_zd_chip_disable_int
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENC_SNIFFER,4,2                ## @ENC_SNIFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_mac_init_hw                 ; -- Begin function zd_mac_init_hw
	.p2align	2
_zd_mac_init_hw:                        ; @zd_mac_init_hw
	.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	x20, x0
	bl	_zd_hw_mac
	mov	x21, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_zd_chip_enable_int
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_zd_chip_init_hw
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	bl	_irqs_disabled
	cmp	w0, #0
	cset	w0, eq
	bl	_ZD_ASSERT
	add	x1, sp, #8
	mov	x0, x19
	bl	_zd_read_regdomain
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
	add	x22, x21, #4
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	w8, [sp, #8]
	str	w8, [x21, #8]
	str	w8, [x21]
	mov	x0, x22
	bl	_spin_unlock_irq
Lloh0:
	adrp	x8, _ENC_SNIFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENC_SNIFFER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zd_set_encryption_type
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x21]
	add	x1, sp, #14
	bl	_zd_reg2alpha2
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	add	x1, sp, #14
	bl	_regulatory_hint
	mov	x22, x0
LBB0_6:
	mov	x0, x19
	bl	_zd_chip_disable_int
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENC_SNIFFER,4,2                ; @ENC_SNIFFER
.subsections_via_symbols
