	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_parport_attach
_i2c_parport_attach:                    ## @i2c_parport_attach
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MAX_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.6:
	movq	_parport@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%edx, (%r15)
	jne	LBB0_9
## %bb.2:
	cmpl	%eax, %ebx
	jne	LBB0_3
LBB0_10:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	%eax, %ebx
	je	LBB0_10
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.4:
	movq	%rax, %r14
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PARPORT_FLAG_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_i2c_parport_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, -56(%rbp)
	movl	4(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_parport_disable_irq
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_parport_register_dev_model
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movl	48(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	leaq	64(%r14), %rax
	movq	_parport_algo_data@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rdx
	movq	%rdx, 80(%r14)
	movups	(%rcx), %xmm0
	movups	%xmm0, 64(%r14)
	movq	_adapter_parm@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_type@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	cmpl	$0, 16(%rcx,%rdx,8)
	jne	LBB0_13
## %bb.12:
	movq	$0, 80(%r14)
	movl	$50, 64(%r14)
LBB0_13:
	movq	%r15, 72(%r14)
	movq	%rax, 40(%r14)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	(%r14), %rdi
	callq	_parport_claim_or_block
	testq	%rax, %rax
	js	LBB0_14
## %bb.17:
	leaq	32(%r14), %rbx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_parport_setsda
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_parport_setscl
	movq	(%r12), %rax
	movq	(%r13), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, 8(%rax,%rcx,8)
	je	LBB0_19
## %bb.18:
	leaq	(%rax,%rcx,8), %rdx
	addq	$8, %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_line_set
	movl	$100, %edi
	callq	_msleep
LBB0_19:
	movq	%rbx, %rdi
	callq	_i2c_bit_add_bus
	testq	%rax, %rax
	js	LBB0_20
## %bb.21:
	movq	(%r12), %rax
	movq	(%r13), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_25
## %bb.22:
	leaq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_i2c_setup_smbus_alert
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_parport_enable_irq
	jmp	LBB0_25
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	movq	(%r14), %rdi
	callq	_dev_err
	movq	(%r14), %rdi
	callq	_parport_release
	movq	(%r14), %rdi
	callq	_parport_unregister_device
LBB0_16:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_26
LBB0_24:
	movq	(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_warn
LBB0_25:
	movq	_adapter_list_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	addq	$8, %r14
	movq	_adapter_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DEVICE,4,2                 ## @MAX_DEVICE
	.comm	_parport,8,3                    ## @parport
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not using parport%d.\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PARPORT_FLAG_EXCL,4,2          ## @PARPORT_FLAG_EXCL
	.comm	_i2c_parport_irq,4,2            ## @i2c_parport_irq
L_.str.1:                               ## @.str.1
	.asciz	"attaching to %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c-parport"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to register with parport\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
L_.str.4:                               ## @.str.4
	.asciz	"Parallel port adapter"

	.comm	_parport_algo_data,24,3         ## @parport_algo_data
	.comm	_adapter_parm,8,3               ## @adapter_parm
	.comm	_type,8,3                       ## @type
L_.str.5:                               ## @.str.5
	.asciz	"Could not claim parallel port\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to register with I2C\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to register ARA client\n"

	.comm	_adapter_list_lock,4,2          ## @adapter_list_lock
	.comm	_adapter_list,4,2               ## @adapter_list
	.no_dead_strip	_i2c_parport_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_parport_attach
_i2c_parport_attach:                    ; @i2c_parport_attach
	.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
Lloh0:
	adrp	x8, _MAX_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
Lloh3:
	adrp	x9, _parport@GOTPAGE
Lloh4:
	ldr	x9, [x9, _parport@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x8, x21
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x21, lsl #2]
	cmn	w10, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x19]
	cmp	w11, w10
	b.ne	LBB0_2
; %bb.5:
	cmp	w21, w8
	b.ne	LBB0_8
LBB0_6:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	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	_pr_debug
LBB0_7:
	mov	w21, #0
	cmp	w21, w8
	b.eq	LBB0_6
LBB0_8:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_26
; %bb.9:
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh11:
	adrp	x8, _PARPORT_FLAG_EXCL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PARPORT_FLAG_EXCL@GOTPAGEOFF]
Lloh13:
	adrp	x9, _i2c_parport_irq@GOTPAGE
Lloh14:
	ldr	x9, [x9, _i2c_parport_irq@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	str	x20, [sp]
	ldr	w1, [x19, #4]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_parport_disable_irq
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, sp
	mov	x0, x19
	mov	x3, x21
	bl	_parport_register_dev_model
	str	x0, [x20]
	cbz	x0, LBB0_19
; %bb.10:
Lloh21:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #52]
	ldr	w0, [x20, #48]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	add	x8, x20, #64
Lloh29:
	adrp	x9, _parport_algo_data@GOTPAGE
Lloh30:
	ldr	x9, [x9, _parport_algo_data@GOTPAGEOFF]
	ldr	x10, [x9, #16]
	str	x10, [x20, #80]
	ldr	q0, [x9]
	str	q0, [x20, #64]
Lloh31:
	adrp	x22, _adapter_parm@GOTPAGE
Lloh32:
	ldr	x22, [x22, _adapter_parm@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh33:
	adrp	x23, _type@GOTPAGE
Lloh34:
	ldr	x23, [x23, _type@GOTPAGEOFF]
	ldr	x10, [x23]
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldr	w9, [x9, #16]
	cbnz	w9, LBB0_12
; %bb.11:
	str	xzr, [x20, #80]
	mov	w9, #50
	str	w9, [x20, #64]
LBB0_12:
	str	x19, [x20, #72]
	str	x8, [x20, #40]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20, #32]
	ldr	x0, [x20]
	bl	_parport_claim_or_block
	tbnz	x0, #63, LBB0_20
; %bb.13:
	add	x21, x20, #32
	mov	x0, x19
	mov	w1, #1
	bl	_parport_setsda
	mov	x0, x19
	mov	w1, #1
	bl	_parport_setscl
	ldr	x8, [x22]
	ldr	x9, [x23]
	mov	w10, #24
	madd	x2, x9, x10, x8
	ldr	x8, [x2, #8]!
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #1
	bl	_line_set
	mov	w0, #100
	bl	_msleep
LBB0_15:
	mov	x0, x21
	bl	_i2c_bit_add_bus
	tbnz	x0, #63, LBB0_21
; %bb.16:
	ldr	x8, [x22]
	ldr	x9, [x23]
	mov	w10, #24
	mul	x9, x9, x10
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_25
; %bb.17:
	add	x1, x20, #24
	mov	x0, x21
	bl	_i2c_setup_smbus_alert
	str	x0, [x20, #16]
	cbz	x0, LBB0_24
; %bb.18:
	mov	x0, x19
	bl	_parport_enable_irq
	b	LBB0_25
LBB0_19:
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_23
LBB0_20:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_22:
	ldr	x0, [x20]
	bl	_dev_err
	ldr	x0, [x20]
	bl	_parport_release
	ldr	x0, [x20]
	bl	_parport_unregister_device
LBB0_23:
	mov	x0, x20
	bl	_kfree
	b	LBB0_26
LBB0_24:
	ldr	x0, [x20]
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_warn
LBB0_25:
Lloh43:
	adrp	x19, _adapter_list_lock@GOTPAGE
Lloh44:
	ldr	x19, [x19, _adapter_list_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x20, #8
Lloh45:
	adrp	x1, _adapter_list@GOTPAGE
Lloh46:
	ldr	x1, [x1, _adapter_list@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x19
	bl	_mutex_unlock
LBB0_26:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DEVICE,4,2                 ; @MAX_DEVICE
	.comm	_parport,8,3                    ; @parport
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not using parport%d.\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PARPORT_FLAG_EXCL,4,2          ; @PARPORT_FLAG_EXCL
	.comm	_i2c_parport_irq,4,2            ; @i2c_parport_irq
l_.str.1:                               ; @.str.1
	.asciz	"attaching to %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c-parport"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to register with parport\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
l_.str.4:                               ; @.str.4
	.asciz	"Parallel port adapter"

	.comm	_parport_algo_data,24,3         ; @parport_algo_data
	.comm	_adapter_parm,8,3               ; @adapter_parm
	.comm	_type,8,3                       ; @type
l_.str.5:                               ; @.str.5
	.asciz	"Could not claim parallel port\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to register with I2C\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to register ARA client\n"

	.comm	_adapter_list_lock,4,2          ; @adapter_list_lock
	.comm	_adapter_list,4,2               ; @adapter_list
	.no_dead_strip	_i2c_parport_attach
.subsections_via_symbols
