	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scard_transmit
_scard_transmit:                        ## @scard_transmit
	.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	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_wpa_hexdump_key
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movq	_SCARD_PROTOCOL_T1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_SCARD_PCI_T1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SCARD_PCI_T0@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_SCardTransmit
	movq	%rax, %rbx
	movslq	-44(%rbp), %rcx
	movq	%rcx, (%r15)
	movq	_SCARD_S_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_6
LBB0_5:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCARD: scard_transmit: send"

	.comm	_SCARD_PROTOCOL_T1,8,3          ## @SCARD_PROTOCOL_T1
	.comm	_SCARD_PCI_T1,4,2               ## @SCARD_PCI_T1
	.comm	_SCARD_PCI_T0,4,2               ## @SCARD_PCI_T0
	.comm	_SCARD_S_SUCCESS,8,3            ## @SCARD_S_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"SCARD: scard_transmit: recv"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"SCARD: SCardTransmit failed (err=0x%lx)"

	.no_dead_strip	_scard_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scard_transmit
_scard_transmit:                        ; @scard_transmit
	.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	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_wpa_hexdump_key
	ldr	x8, [x21]
	str	w8, [sp, #12]
	ldr	w0, [x23, #8]
	ldr	x8, [x23]
Lloh4:
	adrp	x9, _SCARD_PROTOCOL_T1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SCARD_PROTOCOL_T1@GOTPAGEOFF]
Lloh6:
	adrp	x10, _SCARD_PCI_T1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SCARD_PCI_T1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x11, _SCARD_PCI_T0@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SCARD_PCI_T0@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	add	x6, sp, #12
	mov	x2, x22
	mov	x3, x20
	mov	x4, #0
	mov	x5, x19
	bl	_SCardTransmit
	mov	x20, x0
	ldrsw	x3, [sp, #12]
	str	x3, [x21]
Lloh11:
	adrp	x8, _SCARD_S_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCARD_S_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
LBB0_3:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCARD: scard_transmit: send"

	.comm	_SCARD_PROTOCOL_T1,8,3          ; @SCARD_PROTOCOL_T1
	.comm	_SCARD_PCI_T1,4,2               ; @SCARD_PCI_T1
	.comm	_SCARD_PCI_T0,4,2               ; @SCARD_PCI_T0
	.comm	_SCARD_S_SUCCESS,8,3            ; @SCARD_S_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"SCARD: scard_transmit: recv"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"SCARD: SCardTransmit failed (err=0x%lx)"

	.no_dead_strip	_scard_transmit
.subsections_via_symbols
