	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mhz_setup
_mhz_setup:                             ## @mhz_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	(%rdi), %rax
	movq	24(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_cvt_ascii_address
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	movq	_CISTPL_VERS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pcmcia_get_versmac@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_pcmcia_loop_tuple
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_pcmcia_get_tuple
	movq	-24(%rbp), %rsi
	movl	$-1, %ebx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	cmpq	$13, %rax
	jb	LBB0_6
## %bb.5:
	movb	$0, 12(%rsi)
	movq	%r14, %rdi
	callq	_cvt_ascii_address
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
	movq	-24(%rbp), %rsi
LBB0_6:
	movq	%rsi, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISTPL_VERS_1,4,2              ## @CISTPL_VERS_1
	.comm	_pcmcia_get_versmac,4,2         ## @pcmcia_get_versmac
	.no_dead_strip	_mhz_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mhz_setup
_mhz_setup:                             ; @mhz_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldp	x8, x19, [x0]
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cvt_ascii_address
	cbz	x0, LBB0_7
LBB0_2:
Lloh0:
	adrp	x8, _CISTPL_VERS_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CISTPL_VERS_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _pcmcia_get_versmac@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcmcia_get_versmac@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_pcmcia_loop_tuple
	cbz	w0, LBB0_7
; %bb.3:
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #129
	bl	_pcmcia_get_tuple
	ldr	x1, [sp, #8]
	mov	w20, #-1
	cbz	x1, LBB0_6
; %bb.4:
	cmp	x0, #13
	b.lo	LBB0_6
; %bb.5:
	strb	wzr, [x1, #12]
	mov	x0, x19
	bl	_cvt_ascii_address
	cmp	x0, #0
	csetm	w20, ne
	ldr	x1, [sp, #8]
LBB0_6:
	mov	x0, x1
	bl	_kfree
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CISTPL_VERS_1,4,2              ; @CISTPL_VERS_1
	.comm	_pcmcia_get_versmac,4,2         ; @pcmcia_get_versmac
	.no_dead_strip	_mhz_setup
.subsections_via_symbols
