	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ip32_set_mode
_parport_ip32_set_mode:                 ## @parport_ip32_set_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_ECR_MODE_MASK@GOTPCREL(%rip), %r15
	andl	(%r15), %ebx
	callq	_parport_ip32_read_econtrol
	movq	_ECR_MODE_SPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_5
## %bb.1:
	movq	_ECR_MODE_PS2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %ebx
	je	LBB0_5
## %bb.2:
	andl	(%r15), %eax
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.3:
	cmpl	%esi, %eax
	je	LBB0_5
## %bb.4:
	movq	_ECR_nERRINTR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_ECR_SERVINTR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_parport_ip32_write_econtrol
LBB0_5:
	movq	_ECR_nERRINTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ECR_SERVINTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parport_ip32_write_econtrol    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECR_MODE_MASK,4,2              ## @ECR_MODE_MASK
	.comm	_ECR_MODE_SPP,4,2               ## @ECR_MODE_SPP
	.comm	_ECR_MODE_PS2,4,2               ## @ECR_MODE_PS2
	.comm	_ECR_nERRINTR,4,2               ## @ECR_nERRINTR
	.comm	_ECR_SERVINTR,4,2               ## @ECR_SERVINTR
	.no_dead_strip	_parport_ip32_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ip32_set_mode
_parport_ip32_set_mode:                 ; @parport_ip32_set_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x23, _ECR_MODE_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ECR_MODE_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w20, w8, w1
	bl	_parport_ip32_read_econtrol
Lloh2:
	adrp	x8, _ECR_MODE_SPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECR_MODE_SPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _ECR_nERRINTR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ECR_nERRINTR@GOTPAGEOFF]
Lloh7:
	adrp	x21, _ECR_SERVINTR@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ECR_SERVINTR@GOTPAGEOFF]
	cmp	w20, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x23]
	and	w10, w9, w0
Lloh9:
	adrp	x9, _ECR_MODE_PS2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ECR_MODE_PS2@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w20, w9
	ccmp	w10, w8, #4, ne
	ccmp	w10, w9, #4, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x22]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_parport_ip32_write_econtrol
LBB0_3:
	ldr	w8, [x22]
	orr	w8, w8, w20
	ldr	w9, [x21]
	orr	w1, w8, w9
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_parport_ip32_write_econtrol
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ECR_MODE_MASK,4,2              ; @ECR_MODE_MASK
	.comm	_ECR_MODE_SPP,4,2               ; @ECR_MODE_SPP
	.comm	_ECR_MODE_PS2,4,2               ; @ECR_MODE_PS2
	.comm	_ECR_nERRINTR,4,2               ; @ECR_nERRINTR
	.comm	_ECR_SERVINTR,4,2               ; @ECR_SERVINTR
	.no_dead_strip	_parport_ip32_set_mode
.subsections_via_symbols
