	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipheth_probe
_ipheth_probe:                          ## @ipheth_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_interface_to_usbdev
	movq	%rax, %r14
	movl	$64, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_ipheth_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_IPHETH_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, 56(%rax)
	movq	%r15, 48(%rax)
	movq	%r12, 40(%rax)
	movl	$0, (%rax)
	movq	_IPHETH_ALT_INTFNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_altnum_to_altsetting
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rax)
	jle	LBB0_9
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	$24, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14,%r12), %rax
	movq	%rax, (%rcx)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	8(%r13), %rax
	addq	$8, %r12
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r14
	leaq	(%r14,%r12), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_bulk_in
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_bulk_out
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.10:
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.12:
	movq	_IPHETH_CTRL_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rdi
	callq	_ipheth_get_macaddr
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_ipheth_carrier_check_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, %rdi
	callq	_ipheth_alloc_urbs
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_22:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_19:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_20:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_ipheth_free_urbs
	jmp	LBB0_19
LBB0_23:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	callq	_netif_tx_stop_all_queues
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ipheth_netdev_ops,4,2          ## @ipheth_netdev_ops
	.comm	_IPHETH_TX_TIMEOUT,4,2          ## @IPHETH_TX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eth%d"

	.comm	_IPHETH_ALT_INTFNUM,4,2         ## @IPHETH_ALT_INTFNUM
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Unable to find alternate settings interface\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to find endpoints\n"

	.comm	_IPHETH_CTRL_BUF_SIZE,4,2       ## @IPHETH_CTRL_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ipheth_carrier_check_work,4,2  ## @ipheth_carrier_check_work
L_.str.3:                               ## @.str.3
	.asciz	"error allocating urbs: %d\n"

	.comm	_ops,4,2                        ## @ops
L_.str.4:                               ## @.str.4
	.asciz	"error registering netdev: %d\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.5:                               ## @.str.5
	.asciz	"Apple iPhone USB Ethernet device attached\n"

	.no_dead_strip	_ipheth_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipheth_probe
_ipheth_probe:                          ; @ipheth_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_interface_to_usbdev
	mov	x22, x0
	mov	w0, #64
	bl	_alloc_etherdev
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ipheth_netdev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipheth_netdev_ops@GOTPAGEOFF]
	str	x8, [x0, #16]
Lloh2:
	adrp	x8, _IPHETH_TX_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPHETH_TX_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	stp	x19, x22, [x0, #48]
	str	x20, [x0, #40]
	str	wzr, [x0]
Lloh7:
	adrp	x8, _IPHETH_ALT_INTFNUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPHETH_ALT_INTFNUM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_altnum_to_altsetting
	cbz	x0, LBB0_16
; %bb.2:
	mov	x22, x0
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
	mov	x25, #0
	add	x26, x21, #32
	add	x27, x21, #24
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x28, x24]
	str	x9, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22, #8]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x22]
	add	x23, x28, x24
	mov	x0, x23
	bl	_usb_endpoint_is_bulk_in
	mov	x8, x26
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_usb_endpoint_is_bulk_out
	mov	x8, x27
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_8:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_15
; %bb.9:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_15
; %bb.10:
Lloh10:
	adrp	x8, _IPHETH_CTRL_BUF_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPHETH_CTRL_BUF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_18
; %bb.11:
	mov	x0, x21
	bl	_ipheth_get_macaddr
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.12:
	add	x0, x21, #16
Lloh16:
	adrp	x8, _ipheth_carrier_check_work@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ipheth_carrier_check_work@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x21
	bl	_ipheth_alloc_urbs
	cbz	w0, LBB0_22
; %bb.13:
	mov	x22, x0
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_19
LBB0_14:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_21
LBB0_15:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w22, w8
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_20
LBB0_18:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	ldr	x0, [x21, #8]
	bl	_kfree
LBB0_20:
	mov	x0, x19
	bl	_free_netdev
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	mov	x0, x20
	mov	x1, x21
	bl	_usb_set_intfdata
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
Lloh37:
	adrp	x8, _ops@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ops@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x19
	bl	_register_netdev
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_24
; %bb.23:
	str	x0, [sp]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x21
	bl	_ipheth_free_urbs
	b	LBB0_19
LBB0_24:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netif_tx_stop_all_queues
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ipheth_netdev_ops,4,2          ; @ipheth_netdev_ops
	.comm	_IPHETH_TX_TIMEOUT,4,2          ; @IPHETH_TX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eth%d"

	.comm	_IPHETH_ALT_INTFNUM,4,2         ; @IPHETH_ALT_INTFNUM
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Unable to find alternate settings interface\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to find endpoints\n"

	.comm	_IPHETH_CTRL_BUF_SIZE,4,2       ; @IPHETH_CTRL_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ipheth_carrier_check_work,4,2  ; @ipheth_carrier_check_work
l_.str.3:                               ; @.str.3
	.asciz	"error allocating urbs: %d\n"

	.comm	_ops,4,2                        ; @ops
l_.str.4:                               ; @.str.4
	.asciz	"error registering netdev: %d\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.5:                               ; @.str.5
	.asciz	"Apple iPhone USB Ethernet device attached\n"

	.no_dead_strip	_ipheth_probe
.subsections_via_symbols
