	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs_probe
_mcs_probe:                             ## @mcs_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	%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, %r14
	callq	_interface_to_usbdev
	movq	%rax, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	$48, %edi
	callq	_alloc_irdadev
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_IRDA_DEBUG
	leaq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rdi
	callq	_usb_reset_configuration
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_IRDA_ERROR
LBB0_3:
	movq	%r12, %rdi
	callq	_free_netdev
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r13, 40(%rax)
	movq	%r12, 32(%rax)
	leaq	24(%rax), %rdi
	callq	_spin_lock_init
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_irda_init_max_qos_capabilies
	movq	_IR_2400@GOTPCREL(%rip), %rax
	movq	_IR_9600@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IR_19200@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IR_38400@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IR_57600@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IR_115200@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IR_576000@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IR_1152000@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IR_4000000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	orl	%ecx, %eax
	andl	%eax, 20(%r15)
	movq	_qos_mtt_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, 16(%r15)
	movq	%rbx, %rdi
	callq	_irda_qos_bits_to_value
	leaq	12(%r15), %rdi
	movq	_mcs_speed_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_mcs_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_mcs_find_endpoints
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_register_netdev
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.9:
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_IRDA_DEBUG
	movq	_transceiver_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_sir_tweak@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_receive_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCS7780 USB-IrDA bridge found at %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"mcs7780: usb reset configuration failed\n"

	.comm	_IR_2400,4,2                    ## @IR_2400
	.comm	_IR_9600,4,2                    ## @IR_9600
	.comm	_IR_19200,4,2                   ## @IR_19200
	.comm	_IR_38400,4,2                   ## @IR_38400
	.comm	_IR_57600,4,2                   ## @IR_57600
	.comm	_IR_115200,4,2                  ## @IR_115200
	.comm	_IR_576000,4,2                  ## @IR_576000
	.comm	_IR_1152000,4,2                 ## @IR_1152000
	.comm	_IR_4000000,4,2                 ## @IR_4000000
	.comm	_qos_mtt_bits,4,2               ## @qos_mtt_bits
	.comm	_mcs_speed_work,4,2             ## @mcs_speed_work
	.comm	_mcs_netdev_ops,4,2             ## @mcs_netdev_ops
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"IrDA: Registered MosChip MCS7780 device as %s\n"

	.comm	_transceiver_type,4,2           ## @transceiver_type
	.comm	_sir_tweak,4,2                  ## @sir_tweak
	.comm	_receive_mode,4,2               ## @receive_mode
	.no_dead_strip	_mcs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs_probe
_mcs_probe:                             ; @mcs_probe
	.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
	bl	_interface_to_usbdev
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #48
	bl	_alloc_irdadev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w2, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_IRDA_DEBUG
	add	x1, x19, #8
	mov	x0, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x22
	bl	_usb_reset_configuration
	cbz	w0, LBB0_6
; %bb.2:
	mov	x23, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IRDA_ERROR
LBB0_3:
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_5
LBB0_4:
	neg	w23, w21
LBB0_5:
	mov	x0, x23
	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
	ret
LBB0_6:
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	stp	x20, x22, [x0, #32]
	add	x0, x0, #24
	bl	_spin_lock_init
	add	x22, x21, #16
	mov	x0, x22
	bl	_irda_init_max_qos_capabilies
Lloh7:
	adrp	x8, _IR_2400@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IR_2400@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IR_9600@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IR_9600@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _IR_19200@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IR_19200@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh15:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _IR_38400@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IR_38400@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _IR_57600@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IR_57600@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _IR_115200@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IR_115200@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh24:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _IR_576000@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IR_576000@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _IR_1152000@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IR_1152000@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _IR_4000000@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IR_4000000@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh33:
	ldr	w9, [x10]
	orr	w8, w8, w9, lsl #8
	ldp	w10, w9, [x21, #16]
	and	w8, w8, w9
Lloh34:
	adrp	x9, _qos_mtt_bits@GOTPAGE
Lloh35:
	ldr	x9, [x9, _qos_mtt_bits@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	and	w9, w10, w9
	stp	w9, w8, [x21, #16]
	mov	x0, x22
	bl	_irda_qos_bits_to_value
	add	x0, x21, #12
Lloh37:
	adrp	x8, _mcs_speed_work@GOTPAGE
Lloh38:
	ldr	x8, [x8, _mcs_speed_work@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh40:
	adrp	x8, _mcs_netdev_ops@GOTPAGE
Lloh41:
	ldr	x8, [x8, _mcs_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.7:
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_mcs_find_endpoints
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_register_netdev
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.9:
	ldr	w2, [x20]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_IRDA_DEBUG
Lloh44:
	adrp	x8, _transceiver_type@GOTPAGE
Lloh45:
	ldr	x8, [x8, _transceiver_type@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x21, #8]
Lloh47:
	adrp	x8, _sir_tweak@GOTPAGE
Lloh48:
	ldr	x8, [x8, _sir_tweak@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _receive_mode@GOTPAGE
Lloh51:
	ldr	x9, [x9, _receive_mode@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_usb_set_intfdata
	b	LBB0_5
LBB0_10:
	mov	w23, #0
	b	LBB0_3
LBB0_11:
Lloh53:
	adrp	x8, _ENODEV@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCS7780 USB-IrDA bridge found at %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"mcs7780: usb reset configuration failed\n"

	.comm	_IR_2400,4,2                    ; @IR_2400
	.comm	_IR_9600,4,2                    ; @IR_9600
	.comm	_IR_19200,4,2                   ; @IR_19200
	.comm	_IR_38400,4,2                   ; @IR_38400
	.comm	_IR_57600,4,2                   ; @IR_57600
	.comm	_IR_115200,4,2                  ; @IR_115200
	.comm	_IR_576000,4,2                  ; @IR_576000
	.comm	_IR_1152000,4,2                 ; @IR_1152000
	.comm	_IR_4000000,4,2                 ; @IR_4000000
	.comm	_qos_mtt_bits,4,2               ; @qos_mtt_bits
	.comm	_mcs_speed_work,4,2             ; @mcs_speed_work
	.comm	_mcs_netdev_ops,4,2             ; @mcs_netdev_ops
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"IrDA: Registered MosChip MCS7780 device as %s\n"

	.comm	_transceiver_type,4,2           ; @transceiver_type
	.comm	_sir_tweak,4,2                  ; @sir_tweak
	.comm	_receive_mode,4,2               ; @receive_mode
	.no_dead_strip	_mcs_probe
.subsections_via_symbols
