	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qmi_wwan_bind
_qmi_wwan_bind:                         ## @qmi_wwan_bind
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rsi), %r15
	movq	16(%r15), %r14
	movl	(%r15), %r13d
	movq	%rsi, %rdi
	callq	_driver_of
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	movq	%rbx, 40(%r12)
	movq	%rbx, 32(%r12)
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_cdc_parse_cdc_header
	movq	-64(%rbp), %r14
	movq	-56(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movq	16(%r12), %rdi
	movl	8(%r13), %esi
	callq	_usb_ifnum_to_if
	movq	%rax, 32(%r12)
	movq	(%r13), %rdx
	cmpq	%rdx, 8(%r15)
	jne	LBB0_3
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movl	8(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	%rbx, 32(%r12)
LBB0_4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_le16_to_cpu
	movl	%eax, (%r12)
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_usbnet_get_ethernet_addr
LBB0_7:
	movq	32(%r12), %rsi
	cmpq	%rsi, 40(%r12)
	je	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_usb_driver_claim_interface
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_qmi_wwan_register_subdriver
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:
	movq	32(%r12), %rdi
	cmpq	%rdi, 40(%r12)
	je	LBB0_13
## %bb.12:
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	32(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_usb_driver_release_interface
LBB0_13:
	movq	24(%r12), %rax
	movq	_QMI_WWAN_QUIRK_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	callq	_le16_to_cpu
	cmpl	$513, %eax                      ## imm = 0x201
	jl	LBB0_16
LBB0_15:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_qmi_wwan_manage_power
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_qmi_wwan_change_dtr
LBB0_16:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	_default_modem_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	_buggy_fw_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_19
LBB0_18:
	movq	8(%r12), %rdi
	callq	_eth_hw_addr_random
LBB0_19:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	callq	_possibly_iphdr
	movq	8(%r12), %rcx
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	(%rcx), %rax
	movl	$189, %edx
	andl	(%rax), %edx
	orl	$2, %edx
	movl	%edx, (%rax)
LBB0_21:
	movq	_qmi_wwan_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rcx)
	movq	8(%rcx), %rax
	movq	_qmi_wwan_sysfs_attr_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_22
LBB0_9:
	movl	%eax, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bogus CDC Union: master=%u, slave=%u\n"

	.comm	_QMI_WWAN_QUIRK_DTR,4,2         ## @QMI_WWAN_QUIRK_DTR
	.comm	_default_modem_addr,4,2         ## @default_modem_addr
	.comm	_buggy_fw_addr,4,2              ## @buggy_fw_addr
	.comm	_qmi_wwan_netdev_ops,4,2        ## @qmi_wwan_netdev_ops
	.comm	_qmi_wwan_sysfs_attr_group,4,2  ## @qmi_wwan_sysfs_attr_group
	.no_dead_strip	_qmi_wwan_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qmi_wwan_bind
_qmi_wwan_bind:                         ; @qmi_wwan_bind
	.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	x20, x1
	mov	x19, x0
	ldr	x24, [x1, #8]
	ldr	x22, [x24, #16]
	ldr	w23, [x24]
	mov	x0, x1
	bl	_driver_of
	mov	x21, x0
	mov	w0, #1
	bl	_BUILD_BUG_ON
	stp	x20, x20, [x19, #32]
	mov	x0, sp
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_cdc_parse_cdc_header
	ldp	x22, x23, [sp]
	cbz	x23, LBB0_3
; %bb.1:
	ldr	x0, [x19, #16]
	ldr	w1, [x23, #8]
	bl	_usb_ifnum_to_if
	str	x0, [x19, #32]
	ldr	x8, [x24, #8]
	ldr	x2, [x23]
	cmp	x8, x2
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_3
; %bb.2:
	ldr	w3, [x23, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	str	x20, [x19, #32]
LBB0_3:
	cbz	x22, LBB0_6
; %bb.4:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_le16_to_cpu
	str	w0, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_usbnet_get_ethernet_addr
LBB0_6:
	ldp	x1, x8, [x19, #32]
	cmp	x8, x1
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x2, x19
	bl	_usb_driver_claim_interface
	tbnz	w0, #31, LBB0_20
LBB0_8:
	mov	x0, x19
	bl	_qmi_wwan_register_subdriver
	mov	x20, x0
	tbz	w0, #31, LBB0_11
; %bb.9:
	ldp	x0, x8, [x19, #32]
	cmp	x8, x0
	b.eq	LBB0_11
; %bb.10:
	mov	x1, #0
	bl	_usb_set_intfdata
	ldr	x1, [x19, #32]
	mov	x0, x21
	bl	_usb_driver_release_interface
LBB0_11:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _QMI_WWAN_QUIRK_DTR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QMI_WWAN_QUIRK_DTR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_le16_to_cpu
	cmp	w0, #513
	b.lt	LBB0_14
LBB0_13:
	mov	x0, x19
	mov	w1, #1
	bl	_qmi_wwan_manage_power
	mov	x0, x19
	mov	w1, #1
	bl	_qmi_wwan_change_dtr
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh5:
	adrp	x8, _default_modem_addr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _default_modem_addr@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ether_addr_equal
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh8:
	adrp	x8, _buggy_fw_addr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _buggy_fw_addr@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ether_addr_equal
	cbz	x0, LBB0_17
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_eth_hw_addr_random
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_possibly_iphdr
	ldr	x8, [x19, #8]
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x9, [x8]
	ldr	w10, [x9]
	mov	w11, #189
	and	w10, w10, w11
	orr	w10, w10, #0x2
	str	w10, [x9]
LBB0_19:
Lloh11:
	adrp	x9, _qmi_wwan_netdev_ops@GOTPAGE
Lloh12:
	ldr	x9, [x9, _qmi_wwan_netdev_ops@GOTPAGEOFF]
	str	x9, [x8, #16]
	ldr	x8, [x8, #8]
Lloh13:
	adrp	x9, _qmi_wwan_sysfs_attr_group@GOTPAGE
Lloh14:
	ldr	x9, [x9, _qmi_wwan_sysfs_attr_group@GOTPAGEOFF]
	str	x9, [x8]
	b	LBB0_21
LBB0_20:
	mov	x20, x0
LBB0_21:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bogus CDC Union: master=%u, slave=%u\n"

	.comm	_QMI_WWAN_QUIRK_DTR,4,2         ; @QMI_WWAN_QUIRK_DTR
	.comm	_default_modem_addr,4,2         ; @default_modem_addr
	.comm	_buggy_fw_addr,4,2              ; @buggy_fw_addr
	.comm	_qmi_wwan_netdev_ops,4,2        ; @qmi_wwan_netdev_ops
	.comm	_qmi_wwan_sysfs_attr_group,4,2  ; @qmi_wwan_sysfs_attr_group
	.no_dead_strip	_qmi_wwan_bind
.subsections_via_symbols
