	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_parport_probe
_i2c_parport_probe:                     ## @i2c_parport_probe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_parport_setsda
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_parport_setscl
	movq	_adapter_parm@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_type@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_2
## %bb.1:
	leaq	(%rax,%rcx), %rsi
	addq	$8, %rsi
	movl	$1, %edi
	callq	_line_set
	movl	$100, %edi
	callq	_msleep
LBB0_2:
	movq	_parport_adapter@GOTPCREL(%rip), %rdi
	movq	%r14, (%rdi)
	callq	_i2c_bit_add_bus
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rax
	movq	(%r12), %rcx
	shlq	$4, %rcx
	cmpq	$0, (%rax,%rcx)
	je	LBB0_9
## %bb.5:
	movq	_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_alert_data@GOTPCREL(%rip), %rsi
	movq	%rax, (%rsi)
	movq	_parport_adapter@GOTPCREL(%rip), %rdi
	callq	_i2c_setup_smbus_alert
	movq	_ara@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_parport_ctrl_irq@GOTPCREL(%rip), %rsi
	movl	$1, %edi
	callq	_line_set
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_adapter_parm,8,3               ## @adapter_parm
	.comm	_type,8,3                       ## @type
	.comm	_parport_adapter,8,3            ## @parport_adapter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to register with I2C\n"

	.comm	_irq,8,3                        ## @irq
	.comm	_alert_data,8,3                 ## @alert_data
	.comm	_ara,8,3                        ## @ara
	.comm	_parport_ctrl_irq,8,3           ## @parport_ctrl_irq
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register ARA client\n"

	.no_dead_strip	_i2c_parport_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_parport_probe
_i2c_parport_probe:                     ; @i2c_parport_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	x0, #0
	mov	w1, #1
	bl	_parport_setsda
	mov	x0, #0
	mov	w1, #1
	bl	_parport_setscl
Lloh0:
	adrp	x21, _adapter_parm@GOTPAGE
Lloh1:
	ldr	x21, [x21, _adapter_parm@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _type@GOTPAGE
Lloh3:
	ldr	x22, [x22, _type@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x8, x9, lsl #4
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_line_set
	mov	w0, #100
	bl	_msleep
LBB0_2:
Lloh4:
	adrp	x0, _parport_adapter@GOTPAGE
Lloh5:
	ldr	x0, [x0, _parport_adapter@GOTPAGEOFF]
	str	x19, [x0]
	bl	_i2c_bit_add_bus
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_4:
	ldr	x8, [x21]
	ldr	x9, [x22]
	lsl	x9, x9, #4
	ldr	x9, [x8, x9]
Lloh8:
	adrp	x8, _irq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _irq@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_8
; %bb.5:
Lloh11:
	adrp	x1, _alert_data@GOTPAGE
Lloh12:
	ldr	x1, [x1, _alert_data@GOTPAGEOFF]
	str	x8, [x1]
Lloh13:
	adrp	x0, _parport_adapter@GOTPAGE
Lloh14:
	ldr	x0, [x0, _parport_adapter@GOTPAGEOFF]
	bl	_i2c_setup_smbus_alert
Lloh15:
	adrp	x8, _ara@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ara@GOTPAGEOFF]
Lloh17:
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.6:
Lloh18:
	adrp	x1, _parport_ctrl_irq@GOTPAGE
Lloh19:
	ldr	x1, [x1, _parport_ctrl_irq@GOTPAGEOFF]
	mov	w0, #1
	bl	_line_set
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_adapter_parm,8,3               ; @adapter_parm
	.comm	_type,8,3                       ; @type
	.comm	_parport_adapter,8,3            ; @parport_adapter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to register with I2C\n"

	.comm	_irq,8,3                        ; @irq
	.comm	_alert_data,8,3                 ; @alert_data
	.comm	_ara,8,3                        ; @ara
	.comm	_parport_ctrl_irq,8,3           ; @parport_ctrl_irq
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register ARA client\n"

	.no_dead_strip	_i2c_parport_probe
.subsections_via_symbols
