	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cardparameter
_set_cardparameter:                     ## @set_cardparameter
	.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	16(%rdi), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DEBUGP
	movl	4(%r15), %ebx
	decl	%ebx
	shrl	$8, %ebx
	andl	$1, %ebx
	orl	(%r15), %ebx
	movl	%ebx, (%r15)
	movl	%r14d, %edi
	callq	_REG_FLAGS1
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_xoutb
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$5, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DEBUGP
	movb	4(%r15), %bl
	decb	%bl
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_REG_BAUDRATE
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_xoutb
	movl	4(%r15), %ecx
	leal	-1(%rcx), %eax
	movzbl	%al, %r8d
	leaq	L_.str.2(%rip), %rdx
	movl	$5, %edi
	movq	%r15, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_DEBUGP
	movq	_card_fixups@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movb	$2, %r12b
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %rbx
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movq	(%r13), %rax
	movl	4(%rax,%rbx), %edx
	movl	8(%rax,%rbx), %esi
	callq	_memcmp
	movq	(%r13), %rdi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rdi,%rbx), %r12d
	jmp	LBB0_4
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_STOPBITS
	movzbl	%r12b, %edi
	movl	%eax, %esi
	callq	_xoutb
	leaq	L_.str.3(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DEBUGP                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-> set_cardparameter\n"

L_.str.1:                               ## @.str.1
	.asciz	"flags1 = 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"baudv = %i -> write 0x%02x\n"

	.comm	_card_fixups,8,3                ## @card_fixups
L_.str.3:                               ## @.str.3
	.asciz	"<- set_cardparameter\n"

	.no_dead_strip	_set_cardparameter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cardparameter
_set_cardparameter:                     ; @set_cardparameter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w20, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	bl	_DEBUGP
	ldp	w8, w9, [x19]
	sub	w9, w9, #1
	ubfx	w9, w9, #8, #1
	orr	w21, w9, w8
	str	w21, [x19]
	mov	x0, x20
	bl	_REG_FLAGS1
	mov	x1, x0
	and	w0, w21, #0xff
	bl	_xoutb
	ldr	w8, [x19]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #5
	mov	x1, x19
	bl	_DEBUGP
	ldrb	w8, [x19, #4]
	sub	w21, w8, #1
	mov	x0, x20
	bl	_REG_BAUDRATE
	mov	x1, x0
	and	w0, w21, #0xff
	bl	_xoutb
	ldr	w8, [x19, #4]
	sub	w9, w8, #1
	and	w9, w9, #0xff
	stp	x8, x9, [sp]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #5
	mov	x1, x19
	bl	_DEBUGP
Lloh6:
	adrp	x22, _card_fixups@GOTPAGE
Lloh7:
	ldr	x22, [x22, _card_fixups@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	mov	w21, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #12
	cmp	x24, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x22]
	add	x8, x8, x23
	ldp	w2, w1, [x8, #4]
	bl	_memcmp
	mov	x8, x0
	ldr	x0, [x22]
	cbnz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w21, [x0, x23]
	b	LBB0_2
LBB0_5:
	mov	w21, #2
LBB0_6:
	mov	x0, x20
	bl	_REG_STOPBITS
	mov	x1, x0
	and	w0, w21, #0xff
	bl	_xoutb
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_DEBUGP
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-> set_cardparameter\n"

l_.str.1:                               ; @.str.1
	.asciz	"flags1 = 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"baudv = %i -> write 0x%02x\n"

	.comm	_card_fixups,8,3                ; @card_fixups
l_.str.3:                               ; @.str.3
	.asciz	"<- set_cardparameter\n"

	.no_dead_strip	_set_cardparameter
.subsections_via_symbols
